Debug logs

This commit is contained in:
Jiiks 2015-11-01 14:00:52 +02:00
parent 9286fe6590
commit 254f00eff9
2 changed files with 4 additions and 1 deletions

View File

@ -188,10 +188,13 @@ EmoteModule.prototype.init = function() {
EmoteModule.prototype.getBlacklist = function() { EmoteModule.prototype.getBlacklist = function() {
var self = this; var self = this;
console.log("getting blacklist");
if(typeof(_hash) == "undefined") { if(typeof(_hash) == "undefined") {
console.log("hash undefined");
setTimeout(self.getBlacklist, 50); setTimeout(self.getBlacklist, 50);
return; return;
} }
console.log("hash: " + _hash);
$.getJSON("https://cdn.rawgit.com/Jiiks/betterDiscordApp/"+_hash+"/emotefilter.json", function(data) { bemotes = data.blacklist; }); $.getJSON("https://cdn.rawgit.com/Jiiks/betterDiscordApp/"+_hash+"/emotefilter.json", function(data) { bemotes = data.blacklist; });
}; };

2
js/main.min.js vendored

File diff suppressed because one or more lines are too long