Skip to content

Commit c032b34

Browse files
Merge pull request #722 from OpenWebGAL/fix-options
fix: error reset user data when startup
2 parents 8d3c0c1 + 49a88f8 commit c032b34

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/webgal/src/hooks/useHotkey.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,6 +393,6 @@ function useToggleFullScreen() {
393393
}, []);
394394
useEffect(() => {
395395
dispatch(setOptionData({ key: 'fullScreen', value: isFullScreen ? 0 : 1 }));
396-
setStorage();
396+
if (WebGAL.gameKey) setStorage();
397397
}, [isFullScreen]);
398398
}

0 commit comments

Comments
 (0)