From 19feb05e9b421d6f8dc5dbca8c06f4c6c3a9d7d7 Mon Sep 17 00:00:00 2001 From: Jiiks Date: Wed, 11 Jan 2017 12:51:37 +0200 Subject: [PATCH] Really fixed customcss and favourite emotes loading --- js/main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/main.js b/js/main.js index 8252c6d..e5873ba 100644 --- a/js/main.js +++ b/js/main.js @@ -1196,7 +1196,7 @@ QuickEmoteMenu.prototype.init = function() { }); this.favoriteEmotes = {}; var fe = bdStorage.get("bdfavemotes"); - if (fe !== null) { + if (fe !== "" && fe !== null) { this.favoriteEmotes = JSON.parse(atob(fe)); } @@ -1753,7 +1753,7 @@ SettingsPanel.prototype.construct = function () { //Custom CSS Editor var _ccss = window.bdStorage.get("bdcustomcss"); var ccss = ""; - if(_ccss !== null) { + if(_ccss !== null && _ccss !== "") { ccss = atob(_ccss); } customCssEditor.applyCustomCss(ccss, true, false);