HTML Loader
This commit is contained in:
parent
d03420f053
commit
2b673e2e96
14
js/main.js
14
js/main.js
|
@ -1087,7 +1087,6 @@ SettingsPanel.prototype.construct = function() {
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var _hash;
|
var _hash;
|
||||||
|
|
||||||
function Utils() {
|
function Utils() {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -1105,9 +1104,20 @@ Utils.prototype.getHash = function() {
|
||||||
_hash = data.sha;
|
_hash = data.sha;
|
||||||
emoteModule.getBlacklist();
|
emoteModule.getBlacklist();
|
||||||
});
|
});
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Utils.prototype.loadHtml = function(html) {
|
||||||
|
var container = $("<div/>", {
|
||||||
|
class: "bd-container"
|
||||||
|
}).appendTo("body");
|
||||||
|
|
||||||
|
//TODO Inject these in next core update
|
||||||
|
html = '//cdn.rawgit.com/Jiiks/BetterDiscordApp/' + _hash + '/html/' + html + '.html';
|
||||||
|
|
||||||
|
container.load(html);
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
/* BetterDiscordApp VoiceMode JavaScript
|
/* BetterDiscordApp VoiceMode JavaScript
|
||||||
* Version: 1.0
|
* Version: 1.0
|
||||||
* Author: Jiiks | http://jiiks.net
|
* Author: Jiiks | http://jiiks.net
|
||||||
|
|
Loading…
Reference in New Issue