feat: document undef check

This commit is contained in:
TrèsAbhi committed 2024-01-21 22:11:23 -06:00
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