mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 18:57:03 +02:00
feat: document undef check
This commit is contained in:
1 parent
9488602f5b
commit
07a147a043
1 file changed
+2
-1
@@ -24,7 +24,8 @@ export function Options({ isFullScreen, canvas }: OptionsProps) {
|
||||
const greenPenetration = useTankopediaTemporary(
|
||||
(state) => state.model.visual.greenPenetration,
|
||||
);
|
||||
const fullScreenAvailable = document.fullscreenEnabled;
|
||||
const fullScreenAvailable =
|
||||
typeof document !== 'undefined' && document.fullscreenEnabled;
|
||||
|
||||
return (
|
||||
<Flex
|
||||
|
||||
Reference in new issue
Block a user