Publicservers init

This commit is contained in:
Jiiks 2015-10-25 00:49:15 +03:00
parent 50fc11cc04
commit 356aa31d15
2 changed files with 10 additions and 6 deletions

View File

@ -13,7 +13,7 @@
* --jsv 1.3
*/
var settingsPanel, emoteModule, utils, quickEmoteMenu;
var settingsPanel, emoteModule, utils, quickEmoteMenu, publicServers;
var jsVersion = 1.3;
var mainObserver;
@ -74,6 +74,10 @@ Core.prototype.init = function() {
settingsPanel = new SettingsPanel();
settingsPanel.init();
publicServers = new PublicServers();
publicServers.init();
quickEmoteMenu.init(false);
$("#tc-settings-button").on("click", function(e) { settingsPanel.show(); });

View File

@ -13,7 +13,7 @@
* --jsv 1.3
*/
var settingsPanel, emoteModule, utils, quickEmoteMenu;
var settingsPanel, emoteModule, utils, quickEmoteMenu, publicServers;
var jsVersion = 1.3;
var mainObserver;
@ -57,10 +57,6 @@ var settingsCookie = {};
function Core() {}
Core.prototype.init = function() {
if(version < "0.1.4") { alert("BetterDiscord v" + version + "(your version) is not supported by the latest js(" + jsVersion + "), please download the latest version from github."); return; }
utils = new Utils();
emoteModule = new EmoteModule();
quickEmoteMenu = new QuickEmoteMenu();
@ -78,6 +74,10 @@ Core.prototype.init = function() {
settingsPanel = new SettingsPanel();
settingsPanel.init();
publicServers = new PublicServers();
publicServers.init();
quickEmoteMenu.init(false);
$("#tc-settings-button").on("click", function(e) { settingsPanel.show(); });