Skip to content

SonoIo/device-utils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Device utils

Cross device utility for browser

Install

  bower install device-utils --save

Changelog

1.0.29

  • Added the parent class iphone-x for models iPhone 12, 12 Pro, 12 Pro Max

1.0.28

  • Standalone detect improved

1.0.27

This version is required in order to properly recognize iPads with the new cordova platform ad iOS >= 13.

1.0.26

  • Check the iPhone/iPad/iPod into the user agent, not only on navigator.platform

1.0.25

  • Added new method to identify iPhones with a notch isIphoneWithNotch with one single method.

1.0.24

  • Added the parent class iphone-x for models iPhone XS, XR, XS Max

1.0.23

  • Bugfix for detect iPhone XS, XR, XS Max

1.0.22

  • Added the "iphone-xs" class if it is an iPhone XS
  • Added the "iphone-xs-max" class if it is an iPhone XS Max
  • Added the "iphone-xr" class if it is an iPhone XR
  • Added method for check device is high performance

1.0.21

  • Added the "iphone-x" class if it is an iPhone X

1.0.20

  • Add a new method "isIos"
  • Add a new method "isIphoneX"

1.0.19

  • Add a new method "isTouchDevice"
  • Add param force for exclude cache

1.0.1

  • New support to fullscreen mode. Device adds class fullScreen to the html tag. In addition it adds browser specific class like mozFullScreen, webkitFullScreen, msfullscreenchange.