browserama
Advanced tools
Comparing version 1.0.1 to 1.1.0
@@ -48,2 +48,6 @@ // Use Feature detection instead of user agents - | ||
get isOpera () { | ||
return isOpera; | ||
}, | ||
get isEdge () { | ||
@@ -50,0 +54,0 @@ return isEdge; |
@@ -1,1 +0,1 @@ | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.browserama=t()}(this,function(){"use strict";var e="undefined"==typeof window,t=!1,o=!1,n=!1,r=!1,i=!1,c=!1,d=!1,u=!1,w=!1;e||(t="undefined"!=typeof InstallTrigger,o=!!window.chrome,n=!!window.chrome&&!!window.chrome.webstore,r=o&&!window.chrome.webstore,i=Object.prototype.toString.call(window.HTMLElement).indexOf("Constructor")>0||window.safari&&window.safari.pushNotification,c=!!window.opr&&!!window.opr.addons||!!window.opera,d=!!window.StyleMedia,u=(n||c)&&!!window.CSS,w=!(o||i||t||c||!document.documentMode));var f={get isChrome(){return n},get isChromeOrChromium(){return o},get isChromium(){return r},get isFirefox(){return t},get isSafari(){return i},get isEdge(){return d},get isIE(){return w},get isBlink(){return u}};return f}); | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.browserama=t()}(this,function(){"use strict";var e="undefined"==typeof window,t=!1,n=!1,o=!1,r=!1,c=!1,i=!1,d=!1,u=!1,w=!1;e||(t="undefined"!=typeof InstallTrigger,n=!!window.chrome,o=!!window.chrome&&!!window.chrome.webstore,r=n&&!window.chrome.webstore,c=Object.prototype.toString.call(window.HTMLElement).indexOf("Constructor")>0||window.safari&&window.safari.pushNotification,i=!!window.opr&&!!window.opr.addons||!!window.opera,d=!!window.StyleMedia,u=(o||i)&&!!window.CSS,w=!(n||c||t||i||!document.documentMode));var f={get isChrome(){return o},get isChromeOrChromium(){return n},get isChromium(){return r},get isFirefox(){return t},get isSafari(){return c},get isOpera(){return i},get isEdge(){return d},get isIE(){return w},get isBlink(){return u}};return f}); |
{ | ||
"name": "browserama", | ||
"version": "1.0.1", | ||
"version": "1.1.0", | ||
"description": "A browser detection package that uses feature detection instead of user agent", | ||
@@ -5,0 +5,0 @@ "main": "out/browserama.min.js", |
@@ -5,1 +5,17 @@ ### Browserama | ||
the user agent to determine which browser is being used. | ||
```sh | ||
npm install browserama | ||
``` | ||
#### Properties | ||
- `isBlink` | ||
- `isChrome` | ||
- `isChromium` | ||
- `isChromeOrChromium` | ||
- `isEdge` | ||
- `isFirefox` | ||
- `isIE` | ||
- `isOpera` | ||
- `isSafari` |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
69
21
7904