mirror of
https://github.com/isledecomp/isle.pizza.git
synced 2026-01-11 10:41:15 +00:00
Update radio button status upon full screen change
This commit is contained in:
parent
89ef30348a
commit
6a1b545887
@ -1264,6 +1264,15 @@
|
||||
document.exitFullscreen();
|
||||
}
|
||||
});
|
||||
|
||||
// Event listener for changes in fullscreen state (e.g., F11 or Esc key)
|
||||
document.addEventListener('fullscreenchange', () => {
|
||||
if (document.fullscreenElement) {
|
||||
fullscreenElement.checked = true;
|
||||
} else {
|
||||
windowedElement.checked = true;
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user