(v2.9.5 localstorage 🤔 https://github.com/jottocraft/dtps/commit/3f2c9f140c27f3577b088da0568fe1ab32b64942)
hopefully this works
diff --git a/fluid.js b/fluid.js
index 4017fb7..7c8fd90 100644
--- a/fluid.js
+++ b/fluid.js
@@ -122,7 +122,7 @@
if (theme !== undefined) {
if ($("#activecontextmenu").children(".btn").hasClass("active")) {$("#activecontextmenu").children(".btn").css("background-color", "#207bdf") } else {
if ($("#activecontextmenu").length) { if ($("#activecontextmenu").children().length == 2) { if ($("body").hasClass("dark")) { $("#activecontextmenu").children(".btn, i")[0].style = "background-color: var(--flex-layer3, #16181a);" } else { $("#activecontextmenu").children(".btn, i")[0].style = "background-color: var(--flex-layer3, #dddddd);" } } } }
- if (dontSave !== true) document.cookie = "fluidTheme=" + theme;
+ if (dontSave !== true) localStorage.setItem("fluidTheme", theme);
}
}
fluid.isOutlined = function() {
@@ -205,8 +205,8 @@
}
}
- if (getCookie("fluidTheme") !== "") {
- fluid.theme(getCookie("fluidTheme"), true)
+ if (window.localStorage.fluidTheme !== "") {
+ fluid.theme(window.localStorage.fluidTheme, true)
} else {
if (fluid.theme(undefined, "unsetStat") == "unset") fluid.theme("auto", true);
}