Skip to content

Commit

Permalink
quick bugfix (themes are still broken)
Browse files Browse the repository at this point in the history
  • Loading branch information
twnlink committed Dec 8, 2023
1 parent 1789554 commit f6443b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export function appendStyle(style) {
document.adoptedStyleSheets.push(sheet);

return (newStyle) => {
if (newStyle == undefined) return document.adoptedStyleSheets = document.adoptedStyleSheets.slice(document.adoptedStyleSheets.indexOf(sheet), 1)
if (newStyle == undefined) return [...document.adoptedStyleSheets.slice(document.adoptedStyleSheets.indexOf(sheet), 1)]

sheet.replaceSync(newStyle)
};
Expand Down

0 comments on commit f6443b7

Please sign in to comment.