(feat): remove homepage dev buttons
(fix): some call related bugs (qol): update todo
This commit is contained in:
parent
4f82b9c85b
commit
28a3d72fad
8 changed files with 175 additions and 29 deletions
|
|
@ -53,10 +53,13 @@ export default function Actions() {
|
|||
}, [screenRef]);
|
||||
|
||||
const toggleFullscreen = async () => {
|
||||
const screen = screenRef?.current;
|
||||
const fullscreenDocument = screen?.ownerDocument ?? document;
|
||||
|
||||
if (callIsFullscreen) {
|
||||
await document.exitFullscreen().catch(() => undefined);
|
||||
await fullscreenDocument.exitFullscreen().catch(() => undefined);
|
||||
} else {
|
||||
await screenRef?.current?.requestFullscreen().catch(() => undefined);
|
||||
await screen?.requestFullscreen().catch(() => undefined);
|
||||
}
|
||||
|
||||
triggerCallLayoutCalculation();
|
||||
|
|
|
|||
Loading…
Reference in a new issue