Added check for e.alpha

master
Keith Irwin 2020-03-29 22:13:43 -05:00
parent 7809c0a5ec
commit 81fd585e84
No known key found for this signature in database
GPG Key ID: 7A2D6993A44010AA
1 changed files with 1 additions and 1 deletions

View File

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