This commit is contained in:
Jiiks 2015-08-30 12:25:44 +03:00
parent b8dd9826f6
commit 0a03ceddf2
2 changed files with 2 additions and 2 deletions

View File

@ -457,7 +457,7 @@ SettingsPanel.prototype.handler = function(e){
$("body").removeClass("bd-minimal-chan"); $("body").removeClass("bd-minimal-chan");
} }
core.saveSettings(); mainCore.saveSettings();
} }
/* BetterDiscordApp Utilities JavaScript /* BetterDiscordApp Utilities JavaScript

View File

@ -105,7 +105,7 @@ BetterDiscord.prototype.start = function() {
self.getUtils().injectJavaScript("//" + _updater.CDN + "/Jiiks/BetterDiscordApp/"+_hash+"/js/main.min.js", true); self.getUtils().injectJavaScript("//" + _updater.CDN + "/Jiiks/BetterDiscordApp/"+_hash+"/js/main.min.js", true);
//Start BDA //Start BDA
self.getUtils().execJs("var startBda = function() { var mainCore = new Core(); mainCore.init(); }"); self.getUtils().execJs("var mainCore; var startBda = function() { mainCore = new Core(); mainCore.init(); }");
self.getUtils().execJs("function startDefer() { if(window.Core && window.jQuery && $.cookie){ startBda(); } else { setTimeout(function() { startDefer(); }, 100) } } startDefer(); ") self.getUtils().execJs("function startDefer() { if(window.Core && window.jQuery && $.cookie){ startBda(); } else { setTimeout(function() { startDefer(); }, 100) } } startDefer(); ")
}); });