HTML Loader

This commit is contained in:
Jiiks 2015-12-11 02:09:59 +02:00
parent d03420f053
commit 2b673e2e96
1 changed files with 12 additions and 2 deletions

View File

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