diff --git a/Plugins/emoteBlacklist.plugin.js b/Plugins/emoteBlacklist.plugin.js index a695332..9dd5133 100644 --- a/Plugins/emoteBlacklist.plugin.js +++ b/Plugins/emoteBlacklist.plugin.js @@ -10,8 +10,9 @@ emoteBlacklist.prototype.start = function () { window.ebEnabled = true; var self = this; var em = bdPluginStorage.get("emoteBlacklist", "blacklist"); - if(em == undefined) return; - JSON.parse(em).forEach(function(emote) { + + if(em === null) return; + em.forEach(function(emote) { self.remove(emote); self.add(emote); }); @@ -36,8 +37,7 @@ emoteBlacklist.prototype.stop = function () { emoteBlacklist.prototype.clear = function() { var self = this; var em = bdPluginStorage.get("emoteBlacklist", "blacklist"); - if(em == undefined) return; - var em = JSON.parse(em); + if(em === null) return; em.forEach(function(emote) { self.remove(emote); }); @@ -48,8 +48,8 @@ emoteBlacklist.prototype.getSettingsPanel = function () { var html = ''; html += '

Emote Blacklist'; html += '