Skip to content

Commit a01a348

Browse files
RKBoss6Copilot
andauthored
Update index.js
Co-authored-by: Copilot <[email protected]>
1 parent 35bde96 commit a01a348

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

js/index.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1436,11 +1436,9 @@ function settingsCheckbox(id, name) {
14361436
});
14371437
}
14381438
function applyTheme(theme){
1439-
14401439
if(theme=="dark") document.documentElement.style.colorScheme = 'dark';
14411440
else if(theme=="light") document.documentElement.style.colorScheme = 'light';
14421441
else{
1443-
14441442
const prefersDark = window.matchMedia('(prefers-color-scheme: dark)').matches;
14451443
console.log(prefersDark)
14461444
const theme = prefersDark ? 'dark' : 'light';

0 commit comments

Comments
 (0)