some styling cleanup

This commit is contained in:
Nystik
2026-03-17 12:38:30 +01:00
parent c70b9e9d0f
commit 0738c47ac5
27 changed files with 479 additions and 105 deletions

View File

@@ -37,7 +37,10 @@ export const themeShim = {
if (event === "updated") {
const wrapped = () => {
const idx = listeners.indexOf(wrapped);
if (idx >= 0) listeners.splice(idx, 1);
if (idx >= 0) {
listeners.splice(idx, 1);
}
callback();
};
listeners.push(wrapped);
@@ -47,7 +50,10 @@ export const themeShim = {
removeListener(event, callback) {
const idx = listeners.indexOf(callback);
if (idx >= 0) listeners.splice(idx, 1);
if (idx >= 0) {
listeners.splice(idx, 1);
}
return themeShim;
},