Advertisement
daniel-gianni

Is Mobile? Is JS Test

Feb 9th, 2021 (edited)
888
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function isMobile() {
  2.   if (typeof window.orientation !== 'undefined') {
  3.     return true
  4.   }        
  5.   else {            
  6.     return false        
  7.   }    
  8. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement