diff --git a/src/frontend/src/features/rooms/livekit/components/ScreenShareZoomControls.tsx b/src/frontend/src/features/rooms/livekit/components/ScreenShareZoomControls.tsx index 11472f69..1f8dd1be 100644 --- a/src/frontend/src/features/rooms/livekit/components/ScreenShareZoomControls.tsx +++ b/src/frontend/src/features/rooms/livekit/components/ScreenShareZoomControls.tsx @@ -41,9 +41,7 @@ export const ScreenShareZoomControls = ({ const [isFullscreen, setIsFullscreen] = useState(false) // Tracks whether this tile's container triggered fullscreen (vs another share's). const wasThisTileFullscreen = useRef(false) - const [isFullscreenAvailable] = useState( - () => typeof document !== 'undefined' && document.fullscreenEnabled - ) + const isFullscreenAvailable = document.fullscreenEnabled // Covers Esc and browser UI exits, not just the toolbar button. // Only this tile's instance announces to avoid duplicates with multiple shares.