Sha256: 3d7b87c6bc864150151456241bf153df7adca9d5d4d98ef2085a635ca0f0e35f
Contents?: true
Size: 604 Bytes
Versions: 7
Compression:
Stored size: 604 Bytes
Contents
/* --- name: Browser.Mobile description: Provides useful information about the browser environment authors: Christoph Pojer (@cpojer) license: MIT-style license. requires: [Core/Browser] provides: Browser.Mobile ... */ (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); })();
Version data entries
7 entries across 7 versions & 1 rubygems