mirror of
https://github.com/welpo/tabi.git
synced 2025-10-11 07:46:15 +02: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 =
|
||||
localStorage.getItem('theme') ||
|
||||
document.documentElement.getAttribute('data-theme') ||
|
||||
window.matchMedia('(prefers-color-scheme: dark)').matches
|
||||
? 'dark'
|
||||
: 'light';
|
||||
(window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light');
|
||||
|
||||
// Set the favicon color on startup
|
||||
updateFaviconColor(currentTheme === 'dark');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue