browserama
Advanced tools
Comparing version 2.0.0 to 3.0.0
@@ -18,3 +18,3 @@ // Use Feature detection instead of user agents - | ||
isChromeOrChromium = !!window.chrome; | ||
isChrome = !!window.chrome && !!window.chrome.webstore; | ||
isChrome = !!window.chrome && !!window.navigator && !!window.navigator.plugins && !!window.navigator.plugins.namedItem('Chrome PDF Plugin'); | ||
isChromium = isChromeOrChromium && !window.chrome.webstore; | ||
@@ -21,0 +21,0 @@ isSafari = Object.prototype.toString.call(window.HTMLElement).indexOf('Constructor') > 0 || (window.safari && window.safari.pushNotification); |
@@ -1,1 +0,1 @@ | ||
!function(e,o){"object"==typeof exports&&"undefined"!=typeof module?module.exports=o():"function"==typeof define&&define.amd?define(o):e.browserama=o()}(this,function(){"use strict";var e="undefined"==typeof window,o=!1,r=!1,t=!1,n=!1,i=!1,d=!1,w=!1,u=!1,s=!1;return e||(o="undefined"!=typeof InstallTrigger,r=!!window.chrome,t=!!window.chrome&&!!window.chrome.webstore,n=r&&!window.chrome.webstore,i=0<Object.prototype.toString.call(window.HTMLElement).indexOf("Constructor")||window.safari&&window.safari.pushNotification,d=!!window.opr&&!!window.opr.addons||!!window.opera,w=!!window.StyleMedia,u=(t||d)&&!!window.CSS,s=!(r||i||o||d||!document.documentMode)),{get isChrome(){return t},get isChromeOrChromium(){return r},get isChromium(){return n},get isFirefox(){return o},get isSafari(){return i},get isOpera(){return d},get isEdge(){return w},get isIE(){return s},get isBlink(){return u}}}); | ||
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):e.browserama=n()}(this,function(){"use strict";var e="undefined"==typeof window,n=!1,o=!1,i=!1,r=!1,t=!1,d=!1,w=!1,u=!1,a=!1;return e||(n="undefined"!=typeof InstallTrigger,o=!!window.chrome,i=!!(window.chrome&&window.navigator&&window.navigator.plugins&&window.navigator.plugins.namedItem("Chrome PDF Plugin")),r=o&&!window.chrome.webstore,t=0<Object.prototype.toString.call(window.HTMLElement).indexOf("Constructor")||window.safari&&window.safari.pushNotification,d=!!window.opr&&!!window.opr.addons||!!window.opera,w=!!window.StyleMedia,u=(i||d)&&!!window.CSS,a=!(o||t||n||d||!document.documentMode)),{get isChrome(){return i},get isChromeOrChromium(){return o},get isChromium(){return r},get isFirefox(){return n},get isSafari(){return t},get isOpera(){return d},get isEdge(){return w},get isIE(){return a},get isBlink(){return u}}}); |
{ | ||
"name": "browserama", | ||
"version": "2.0.0", | ||
"version": "3.0.0", | ||
"description": "A browser detection package that uses feature detection instead of user agent", | ||
@@ -36,7 +36,7 @@ "main": "out/browserama.min.js", | ||
"babel-preset-env": "^1.7.0", | ||
"rollup": "^0.63.4", | ||
"rollup": "^0.67.4", | ||
"rollup-plugin-babel": "^3.0.7", | ||
"rollup-plugin-uglify": "^2.0.1", | ||
"semistandard": "^12.0.0" | ||
"semistandard": "^12.0.1" | ||
} | ||
} |
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
5411