Skip to content

Commit 8fa09d0

Browse files
committed
chore: format and small fix
1 parent 28dffbd commit 8fa09d0

File tree

2 files changed

+159
-164
lines changed

2 files changed

+159
-164
lines changed

docs/.vitepress/theme/particle-page/MCVersionSwitch.vue

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ function useToggleFn(
88
state: Ref<boolean>,
99
className: string
1010
) {
11+
if (typeof localStorage === 'undefined') {
12+
return () => {
13+
}
14+
}
1115
const classList = document.documentElement.classList;
1216
return (value = !state.value) => {
1317
if ((state.value = value)) {

0 commit comments

Comments
 (0)