mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-10-01 23:32:02 -05:00
Move Config defaults back to top of config.js
This commit is contained in:
32
js/client.js
32
js/client.js
@@ -1,5 +1,21 @@
|
||||
(function ($) {
|
||||
|
||||
Config.version = '0.10.1';
|
||||
|
||||
Config.origindomain = 'play.pokemonshowdown.com';
|
||||
// `defaultserver` specifies the server to use when the domain name in the
|
||||
// address bar is `Config.origindomain`.
|
||||
Config.defaultserver = {
|
||||
id: 'showdown',
|
||||
host: 'sim.smogon.com',
|
||||
port: 443,
|
||||
httpport: 8000,
|
||||
altport: 80,
|
||||
registered: true
|
||||
};
|
||||
Config.sockjsprefix = '/showdown';
|
||||
Config.root = '/';
|
||||
|
||||
if (window.nodewebkit) {
|
||||
window.gui = require('nw.gui');
|
||||
window.nwWindow = gui.Window.get();
|
||||
@@ -133,22 +149,6 @@
|
||||
});
|
||||
}
|
||||
|
||||
Config.version = '0.10.1';
|
||||
Config.origindomain = 'play.pokemonshowdown.com';
|
||||
|
||||
// `defaultserver` specifies the server to use when the domain name in the
|
||||
// address bar is `Config.origindomain`.
|
||||
Config.defaultserver = {
|
||||
id: 'showdown',
|
||||
host: 'sim.smogon.com',
|
||||
port: 443,
|
||||
httpport: 8000,
|
||||
altport: 80,
|
||||
registered: true
|
||||
};
|
||||
Config.sockjsprefix = '/showdown';
|
||||
Config.root = '/';
|
||||
|
||||
// sanitize a room ID
|
||||
// shouldn't actually do anything except against a malicious server
|
||||
var toRoomid = this.toRoomid = function (roomid) {
|
||||
|
||||
Reference in New Issue
Block a user