You've already forked dark-mode-example
mirror of
https://github.com/jakejarvis/dark-mode-example.git
synced 2025-06-27 14:55:40 -04:00
Update dark-mode.js
This commit is contained in:
@ -43,7 +43,7 @@
|
||||
// returns media query selector syntax
|
||||
var prefers = function (theme) {
|
||||
return '(prefers-color-scheme: ' + theme + ')';
|
||||
}
|
||||
};
|
||||
|
||||
// check for OS dark/light mode preference and switch accordingly
|
||||
// default to `default_theme` set above if unsupported
|
||||
|
Reference in New Issue
Block a user