Skip to content

Commit 31312ae

Browse files
committed
chore: comment added
1 parent 844775b commit 31312ae

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/ColorSchemeSwitchThreeStates/view/hero-icons-tailwind.blade.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
window.inlineScripts = window.inlineScripts || {};
1010
1111
window.inlineScripts.refreshColorSchemeIcon = function() {
12-
const currentScheme = localStorage.getItem('colorScheme');
12+
// In the case of 'system', the localStorage item is not set, so we treat it as SYSTEM
13+
const currentScheme = localStorage.getItem('colorScheme') ?? '{{ SchemeTypeEnum::SYSTEM }}';
1314
1415
const icons = document.querySelectorAll('[data-colorschemeicon]');
1516
icons.forEach(function(icon) {

0 commit comments

Comments
 (0)