mirror of
https://github.com/DerTyp7/obs-twitch-camera-frame.git
synced 2025-10-29 12:52:14 +01:00
localstorage theme
This commit is contained in:
@@ -3,6 +3,7 @@ let ws;
|
|||||||
let channelId;
|
let channelId;
|
||||||
|
|
||||||
function changeColorTheme(theme) {
|
function changeColorTheme(theme) {
|
||||||
|
localStorage.setItem("theme", JSON.stringify(theme));
|
||||||
rootElem.style.setProperty("--border-color-1", theme[0]);
|
rootElem.style.setProperty("--border-color-1", theme[0]);
|
||||||
rootElem.style.setProperty("--border-color-2", theme[1]);
|
rootElem.style.setProperty("--border-color-2", theme[1]);
|
||||||
}
|
}
|
||||||
@@ -104,4 +105,4 @@ function pubSubMain() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pubSubMain();
|
pubSubMain();
|
||||||
// changeColorTheme(CONFIG.themes.purple);
|
changeColorTheme(JSON.parse(localStorage.getItem("theme")));
|
||||||
|
|||||||
Reference in New Issue
Block a user