fix: access document on client 2

This commit is contained in:
TrèsAbhi committed 2024-04-01 22:02:15 -05:00
1 parent 9818c9868a
commit 886c2aa1d1
2 files changed
+2 -4

No files matched your search

@@ -183,9 +183,7 @@ export function Options({ isFullScreen }: OptionsProps) {
onClick={() => {
if (isFullScreen) {
document.exitFullscreen();
} else if (typeof document !== 'undefined') {
document.body.requestFullscreen();
}
} else document.body.requestFullscreen();
}}
>
{isFullScreen ? <ExitFullScreenIcon /> : <EnterFullScreenIcon />}