summaryrefslogtreecommitdiff
path: root/packages/frontend/src/scripts
diff options
context:
space:
mode:
authordakkar <dakkar@thenautilus.net>2024-11-08 17:18:29 +0000
committerdakkar <dakkar@thenautilus.net>2024-11-08 17:33:04 +0000
commita930fd9758c6efaf1cc1da7b3e365ba590a5d298 (patch)
tree05e5ebd401230c81d4616eed7341038d693762e3 /packages/frontend/src/scripts
parentprobably re-enable friendlycaptcha on signin (diff)
downloadsharkey-a930fd9758c6efaf1cc1da7b3e365ba590a5d298.tar.gz
sharkey-a930fd9758c6efaf1cc1da7b3e365ba590a5d298.tar.bz2
sharkey-a930fd9758c6efaf1cc1da7b3e365ba590a5d298.zip
probably fix most renamed CSS variables
Diffstat (limited to 'packages/frontend/src/scripts')
-rw-r--r--packages/frontend/src/scripts/favicon-dot.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/frontend/src/scripts/favicon-dot.ts b/packages/frontend/src/scripts/favicon-dot.ts
index a5972276e2..1f62c9ca70 100644
--- a/packages/frontend/src/scripts/favicon-dot.ts
+++ b/packages/frontend/src/scripts/favicon-dot.ts
@@ -78,7 +78,7 @@ class FavIconDot {
this.ctx.beginPath();
this.ctx.arc(this.faviconImage.width - 10, 10, 10, 0, 2 * Math.PI);
const computedStyle = getComputedStyle(document.documentElement);
- this.ctx.fillStyle = tinycolor(computedStyle.getPropertyValue('--navIndicator')).toHexString();
+ this.ctx.fillStyle = tinycolor(computedStyle.getPropertyValue('--MI_THEME-navIndicator')).toHexString();
this.ctx.strokeStyle = 'white';
this.ctx.fill();
this.ctx.stroke();
@@ -104,7 +104,7 @@ class FavIconDot {
this.drawDot();
this.canvas.toDataURL('image/png');
} catch (error) {
- return false;
+ return false;
}
return true;
}
@@ -140,6 +140,6 @@ export async function worksOnInstance() {
icon = new FavIconDot();
await icon.setup();
}
-
+
return await icon.worksOnInstance();
}