Skip to content

Commit 1c7b3a5

Browse files
committed
chore: better comment
1 parent 313983e commit 1c7b3a5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

scripts/ColorSchemeSwitchThreeStates/js/switch-script.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
window.inlineScripts.switchColorScheme = function () {
1212
const previousScheme = localStorage.colorScheme;
1313

14+
// Cycle: Dark -> Light -> System -> Dark -> ...
1415
if (localStorage.colorScheme === "__DARK__") {
1516
setColorScheme("__LIGHT__");
1617
localStorage.colorScheme = "__LIGHT__";

0 commit comments

Comments
 (0)