import {bdthemeErrors, themeCookie, settingsCookie, bdthemes} from "./0globals"; import ContentManager from "./contentManager"; import DataStore from "./dataStore"; import BDEvents from "./bdEvents"; import Utils from "./utils"; function ThemeModule() { } ThemeModule.prototype.loadThemes = function () { this.loadThemeData(); bdthemeErrors.concat(ContentManager.loadThemes()); const themes = Object.keys(bdthemes); for (let i = 0; i < themes.length; i++) { const theme = bdthemes[themes[i]]; if (!themeCookie[theme.name]) themeCookie[theme.name] = false; if (themeCookie[theme.name]) $("head").append($("