2 Commits

Author SHA1 Message Date
Janis
f403822921 v0.1.4 2022-10-31 18:30:29 +01:00
Janis
1c80395b5a localstorage theme 2022-10-31 18:30:22 +01:00
2 changed files with 3 additions and 2 deletions

View File

@@ -3,6 +3,7 @@ let ws;
let channelId;
function changeColorTheme(theme) {
localStorage.setItem("theme", JSON.stringify(theme));
rootElem.style.setProperty("--border-color-1", theme[0]);
rootElem.style.setProperty("--border-color-2", theme[1]);
}
@@ -104,4 +105,4 @@ function pubSubMain() {
}
pubSubMain();
// changeColorTheme(CONFIG.themes.purple);
changeColorTheme(JSON.parse(localStorage.getItem("theme")));

View File

@@ -1,3 +1,3 @@
{
"version": "v0.1.3"
"version": "v0.1.4"
}