Skip to content

Commit

Permalink
Try request full screen to see if nav bar disappears
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewtavis committed Sep 29, 2024
1 parent 0e60241 commit fd31cd8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion frontend/components/media/MediaMap.vue
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,10 @@ const isTouchDevice =
navigator.maxTouchPoints > 0;
const applyMaxWindowHeight = () => {
window.scrollTo(0, 1);
const container = document.getElementById("container");
if (container) {
container.requestFullscreen();
}
};
function isWebglSupported() {
Expand Down

0 comments on commit fd31cd8

Please sign in to comment.