mirror of
https://github.com/welpo/tabi.git
synced 2025-12-14 11:48:45 +01:00
fix check
This commit is contained in:
parent
8c889a862c
commit
027589ca47
1 changed files with 1 additions and 3 deletions
|
|
@ -20,9 +20,7 @@ function updateFaviconColor(dark) {
|
||||||
let currentTheme =
|
let currentTheme =
|
||||||
localStorage.getItem('theme') ||
|
localStorage.getItem('theme') ||
|
||||||
document.documentElement.getAttribute('data-theme') ||
|
document.documentElement.getAttribute('data-theme') ||
|
||||||
window.matchMedia('(prefers-color-scheme: dark)').matches
|
(window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light');
|
||||||
? 'dark'
|
|
||||||
: 'light';
|
|
||||||
|
|
||||||
// Set the favicon color on startup
|
// Set the favicon color on startup
|
||||||
updateFaviconColor(currentTheme === 'dark');
|
updateFaviconColor(currentTheme === 'dark');
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue