Requires

Provides

Provides useful information about the browser environment

License:
MIT-style license.
Authors:
Christoph Pojer (@cpojer)
  1. 20
  2. 21
  3. 22
  4. 23
  5. 24
  6. 25
  7. 26
  8. 27
  9. 28
  10. 29
  11. 30
  12. 31
  13. 32
  14. 33
  15. 34
  16. 35
  17. 36
  18. 37
  19. 38
(function(){ Browser.Device = { name: 'other' }; if (Browser.Platform.ios){ var device = navigator.userAgent.toLowerCase().match(/(ip(ad|od|hone))/)[0]; Browser.Device[device] = true; Browser.Device.name = device; } if (this.devicePixelRatio == 2) Browser.hasHighResolution = true; Browser.isMobile = !['mac', 'linux', 'win'].contains(Browser.Platform.name); })();