mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-03-21 17:50:29 -05:00
Update information on what testclient.html supports
This commit is contained in:
parent
9f55f38485
commit
8b95302e97
|
|
@ -26,8 +26,7 @@ Certain things will fail:
|
|||
+ Changing name to a registered name other than the one you are currently
|
||||
logged in with (however, changing to an unregistered name will work, and
|
||||
you can even change back to your original registered name afterward)
|
||||
+ The ladder tab
|
||||
+ The `/ladder` command
|
||||
+ The ladder room (however, the `/ladder` command does work)
|
||||
|
||||
Everything else can be tested, though.
|
||||
|
||||
|
|
|
|||
11
js/client.js
11
js/client.js
|
|
@ -397,12 +397,17 @@
|
|||
*/
|
||||
initializeTestClient: function() {
|
||||
var self = this;
|
||||
$.get = function(uri, callback/*, type*/) {
|
||||
// `type` is unused
|
||||
var showUnsupported = function() {
|
||||
self.addPopupMessage('The requested action is not supported by testclient.html. Please complete this action in the official client instead.');
|
||||
};
|
||||
$.get = function(uri, callback, type) {
|
||||
if (type === 'html') {
|
||||
return showUnsupported();
|
||||
}
|
||||
self.addPopup(ProxyPopup, {uri: uri, callback: callback});
|
||||
};
|
||||
$.post = function(/*uri, data, callback, type*/) {
|
||||
self.addPopupMessage('The requested action is not yet supported by testclient.html. Please log in or register using the official client, and then load testclient.html afterward.');
|
||||
showUnsupported();
|
||||
};
|
||||
},
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user