1
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:
2020-05-04 12:51:21 -04:00
committed by GitHub
parent 7d8aa59530
commit fb327deb2a

View File

@ -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