Move Config defaults back to top of config.js

This commit is contained in:
Guangcong Luo
2015-09-19 15:00:51 -04:00
parent e979fc6666
commit 30bba3f9fc

View File

@@ -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) {