mirror of
https://github.com/ae-utbm/sith.git
synced 2025-09-23 16:43:53 +00:00
Apply review comments
This commit is contained in:
@@ -38,11 +38,11 @@ document.addEventListener("alpine:init", () => {
|
||||
},
|
||||
|
||||
async toggleFullScreen(event: Event) {
|
||||
const target = event.target as HTMLElement;
|
||||
if (document.fullscreenElement) {
|
||||
await document.exitFullscreen();
|
||||
return;
|
||||
}
|
||||
const target = event.target as HTMLElement;
|
||||
await target.requestFullscreen();
|
||||
},
|
||||
}));
|
||||
|
Reference in New Issue
Block a user