Skip to content

Commit

Permalink
Update index.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
ProLoser authored Oct 1, 2024
1 parent f92e9ab commit 58cf1c9
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/Online/Friends/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@ import { MultiplayerContext, Match, ModalContext } from '../Contexts';
import { Avatar } from '../Profile';
import { formatDistance } from 'date-fns';

const toggleFullscreen = () => document.fullscreenElement
? document.exitFullscreen()
: document.documentElement.requestFullscreen()
const toggleFullscreen = () =>
document.fullscreenElement
? document.exitFullscreen()
: document.documentElement.requestFullscreen()
type Users = {[key: string]: UserData}

export default function Friends() {
Expand All @@ -32,7 +33,7 @@ export default function Friends() {
const fullscreenchange = () => setFullscreen(!!document.fullscreenElement);
document.addEventListener('fullscreenchange', fullscreenchange);
return () => document.removeEventListener('fullscreenchange', fullscreenchange);
})
}, [])


// Synchronize Matches
Expand Down

0 comments on commit 58cf1c9

Please sign in to comment.