aboutsummaryrefslogtreecommitdiff
path: root/static/js/themes.js
diff options
context:
space:
mode:
Diffstat (limited to 'static/js/themes.js')
-rw-r--r--static/js/themes.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/static/js/themes.js b/static/js/themes.js
index 0d9772f..19bdbb4 100644
--- a/static/js/themes.js
+++ b/static/js/themes.js
@@ -20,5 +20,11 @@ function setTheme(name) {
}
function applyTheme() {
+ // HACK: disable all of the themes first. this for some reason makes things work.
+ for (let i = 0, tags = document.getElementsByTagName("link"); i < tags.length; i++) {
+ if (tags[i].type === "text/css" && tags[i].title) {
+ tags[i].disabled = true;
+ }
+ }
setTheme(getCookie("theme") || "default");
}