title: DeviceMotionEvent.requestPermission() is not a function on Chrome + Safari Desktop
body: <p>In iOS 12.2 Apple removed the motion sensors by default from mobile Safari. Chrome did something similar recently too. In iOS 13, a requestPermission popup was added back.</p>
  
  <pre><code>.then(response =&gt; {
    if (response == 'granted') {
      window.addEventListener('devicemotion', (e) =&gt; {
        // do something with e
      })
    }
  })
  .catch(console.error)
  </code></pre>
  
  <p>This solution works great for mobile browsers, and those are now working.</p>
  
  <p>I'm hitting issues now on non-mobile browsers (Edge Chromium, and Chrome)</p>
  
  <blockquote>
    <p>Uncaught TypeError: window.DeviceMotionEvent.requestPermission is not a function
        at game.start_handling (game.js:706)</p>
  </blockquote>
  
  <p>I'm assuming I need to do some sort of check if the method/function exists before calling it. Any suggestions?</p>