Added check for e.alpha

master
Keith Irwin 3 years ago
parent 7809c0a5ec
commit 81fd585e84
No known key found for this signature in database
GPG Key ID: 7A2D6993A44010AA

@ -5,7 +5,7 @@
window.addEventListener('deviceorientation', function(e){
// No orientation data
if(!e) $('#no-dir').show()
if(!e||!e.alpha) $('#no-dir').show()
// Set orientation
else {

Loading…
Cancel
Save