Skip to content

Commit

Permalink
safari
Browse files Browse the repository at this point in the history
  • Loading branch information
TodePond committed Feb 11, 2024
1 parent 10b1c96 commit ca64fd0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,11 @@
<script>
async function enterVr() {
document.body.requestFullscreen();
screen.orientation.lock("landscape-primary");
try {
screen.orientation.lock("landscape-primary");
} catch (e) {
alert("Sorry the dreamberd vision pro doesnt work in your awful browser");
}
const button = document.querySelector("button");
button.setAttribute("disabled", true);
const main = document.querySelector("main");
Expand Down

0 comments on commit ca64fd0

Please sign in to comment.