Fixed customcss and fav emotes load handling
This commit is contained in:
parent
e1fd1f0df7
commit
47a36a2e56
|
@ -1196,7 +1196,7 @@ QuickEmoteMenu.prototype.init = function() {
|
||||||
});
|
});
|
||||||
this.favoriteEmotes = {};
|
this.favoriteEmotes = {};
|
||||||
var fe = bdStorage.get("bdfavemotes");
|
var fe = bdStorage.get("bdfavemotes");
|
||||||
if (fe != undefined) {
|
if (fe !== null) {
|
||||||
this.favoriteEmotes = JSON.parse(atob(fe));
|
this.favoriteEmotes = JSON.parse(atob(fe));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1751,7 +1751,11 @@ SettingsPanel.prototype.construct = function () {
|
||||||
//End emote settings
|
//End emote settings
|
||||||
|
|
||||||
//Custom CSS Editor
|
//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);
|
customCssEditor.applyCustomCss(ccss, true, false);
|
||||||
|
|
||||||
settingsInner += '\
|
settingsInner += '\
|
||||||
|
|
Loading…
Reference in New Issue