fix enabling themes

This commit is contained in:
Zack 2018-10-20 13:53:12 -04:00
parent a50d0c9cdc
commit 4ebe2f889b
2 changed files with 2 additions and 2 deletions

View File

@ -1720,7 +1720,7 @@ ThemeModule.prototype.loadThemes = function () {
ThemeModule.prototype.enableTheme = function(theme, reload = false) {
themeCookie[theme] = true;
this.saveThemeData();
$("head").append($("<style>", {id: Utils.escapeID(name), html: unescape(bdthemes[name].css)}));
$("head").append($("<style>", {id: Utils.escapeID(theme), html: unescape(bdthemes[theme].css)}));
if (settingsCookie["fork-ps-2"] && !reload) mainCore.showToast(`${bdthemes[theme].name} v${bdthemes[theme].version} has been applied.`);
};

2
js/main.min.js vendored

File diff suppressed because one or more lines are too long