Comment

Comment by rda2

The gyro permission request doesn't work on iOS since it's not tied to user input. If you're feeling brave, you can paste this into your phone's javascript console to add a button that requests permission.

var b=document.createElement('button'); b.textContent='Gyro'; b.style='position:fixed;z-index:999'; b.onclick=()=>{DeviceOrientationEvent.requestPermission();b.remove()}; document.body.appendChild(b);

parent rda2 9 months ago

No comments yet

Be the first to share your thoughts.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton