Fixed customcss and fav emotes load handling

This commit is contained in:
Jiiks 2017-01-11 12:46:18 +02:00
parent e1fd1f0df7
commit 47a36a2e56
1 changed files with 6 additions and 2 deletions

View File

@ -1196,7 +1196,7 @@ QuickEmoteMenu.prototype.init = function() {
});
this.favoriteEmotes = {};
var fe = bdStorage.get("bdfavemotes");
if (fe != undefined) {
if (fe !== null) {
this.favoriteEmotes = JSON.parse(atob(fe));
}
@ -1751,7 +1751,11 @@ SettingsPanel.prototype.construct = function () {
//End emote settings
//Custom CSS Editor
var ccss = atob(window.bdStorage.get("bdcustomcss"));
var _ccss = window.bdStorage.get("bdcustomcss");
var ccss = "";
if(_ccss !== null) {
ccss = atob(_ccss);
}
customCssEditor.applyCustomCss(ccss, true, false);
settingsInner += '\