Skip to content

Commit

Permalink
deploy: 96a38c6
Browse files Browse the repository at this point in the history
  • Loading branch information
yellowsink committed Aug 8, 2024
1 parent 861919d commit fab2761
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions snazzy-shelter/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -275,9 +275,10 @@
delete toPush.CSS;
toPush.enabled = true;
if (themeCacheIndex === -1)
store3.themes = [...store3.themes, toPush];
store3.themes.push(toPush);
else
store3.themes[themeCacheIndex] = toPush;
store3.themes = store3.themes;
}
function unloadTheme(theme) {
if (!theme?.url)
Expand All @@ -289,9 +290,10 @@
let toPush = { ...theme };
toPush.enabled = false;
if (themeCacheIndex === -1)
store3.themes = [...store3.themes, toPush];
store3.themes.push(toPush);
else
store3.themes[themeCacheIndex] = toPush;
store3.themes = store3.themes;
}
function removeTheme(theme) {
try {
Expand Down
2 changes: 1 addition & 1 deletion snazzy-shelter/plugin.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"name":"Snazzy Shelter","description":"A theme loader for shelter","author":"Yellowsink","hash":"c59c34b168897dd1225decb9ab128d41"}
{"name":"Snazzy Shelter","description":"A theme loader for shelter","author":"Yellowsink","hash":"cae31e80ca3a5af0b3d47e9cb947ccf2"}

0 comments on commit fab2761

Please sign in to comment.