0.2.3 Prep
This commit is contained in:
parent
08579a2035
commit
0f641a5f1d
|
@ -233,26 +233,8 @@ BetterDiscord.prototype.load = function(reload) {
|
|||
|
||||
//Inject version
|
||||
_this.getUtils().execJs('var version = "'+_version+'"');
|
||||
//Load jQuery
|
||||
_this.getUtils().updateLoading("Loading Resources(jQuery)", 0, 100);
|
||||
_this.getUtils().injectJavaScriptSync("//ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js", "load-jQueryUI");
|
||||
|
||||
};
|
||||
|
||||
BetterDiscord.prototype.reload = function() {
|
||||
|
||||
_this.getUtils().log("Reloading...");
|
||||
|
||||
//Create loading element
|
||||
_this.getUtils().execJs('var loadingNode = document.createElement("DIV");');
|
||||
_this.getUtils().execJs('loadingNode.innerHTML = \' <div style="height:30px;width:100%;background:#282B30;"><div style="padding-right:10px; float:right"> <span id="bd-status" style="line-height:30px;color:#E8E8E8;">BetterDiscord - Loading Libraries : </span><progress id="bd-pbar" value="10" max="100"></progress></div></div> \'');
|
||||
_this.getUtils().execJs('var flex = document.getElementsByClassName("flex-vertical flex-spacer")[0]; flex.appendChild(loadingNode);');
|
||||
|
||||
//Recreate ipc
|
||||
_this.getUtils().execJs("var betterDiscordIPC = require('ipc');");
|
||||
|
||||
//Inject version
|
||||
_this.getUtils().execJs('var version = "'+_version+'"');
|
||||
//Inject cdn
|
||||
_this.getUtils().execJs('var bdcdn = "' + _updater.CDN + '";');
|
||||
//Load jQuery
|
||||
_this.getUtils().updateLoading("Loading Resources(jQuery)", 0, 100);
|
||||
_this.getUtils().injectJavaScriptSync("//ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js", "load-jQueryUI");
|
||||
|
|
Loading…
Reference in New Issue