Apply review comments

This commit is contained in:
2025-09-23 10:28:05 +02:00
parent 4701c0804b
commit d87b069769
2 changed files with 8 additions and 2 deletions

View File

@@ -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();
},
}));