Really fixed customcss and favourite emotes loading

This commit is contained in:
Jiiks 2017-01-11 12:51:37 +02:00
parent 47a36a2e56
commit 19feb05e9b
1 changed files with 2 additions and 2 deletions

View File

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