browserama
Advanced tools
Comparing version 3.2.0 to 3.2.2-build.7
@@ -19,3 +19,3 @@ // Use Feature detection instead of user agents - | ||
isChromeOrChromium = !!window.chrome; | ||
isChrome = !!window.chrome && !!window.navigator && !!window.navigator.plugins && (!!window.navigator.plugins.namedItem('Chrome PDF Plugin') || !!window.chrome.runtime); | ||
isChrome = !!window.chrome; | ||
isChromium = isChromeOrChromium && !window.chrome.webstore && !window.chrome.runtime; | ||
@@ -22,0 +22,0 @@ isSafari = Object.prototype.toString.call(window.HTMLElement).indexOf('Constructor') > 0 || (window.safari && window.safari.pushNotification); |
@@ -1,1 +0,1 @@ | ||
!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,i=!1,o=!1,r=!1,t=!1,d=!1,w=!1,u=!1,a=!1,m=!1;return e||(n="undefined"!=typeof InstallTrigger,i=!!window.chrome,o=!(!window.chrome||!window.navigator||!window.navigator.plugins||!window.navigator.plugins.namedItem("Chrome PDF Plugin")&&!window.chrome.runtime),r=i&&!window.chrome.webstore&&!window.chrome.runtime,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&&!!navigator.userAgent.match(/edg/i),a=(o||d)&&!!window.CSS,m=!(i||t||n||d||!document.documentMode)),{get isChrome(){return o},get isChromeOrChromium(){return i},get isChromium(){return r},get isFirefox(){return n},get isSafari(){return t},get isOpera(){return d},get isEdge(){return w},get isEdgeChromium(){return u},get isIE(){return m},get isBlink(){return a}}}); | ||
!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?module.exports=r():"function"==typeof define&&define.amd?define(r):e.browserama=r()}(this,function(){"use strict";var e="undefined"==typeof window,r=!1,t=!1,o=!1,i=!1,n=!1,d=!1,u=!1,w=!1,s=!1,m=!1;return e||(r="undefined"!=typeof InstallTrigger,t=!!window.chrome,o=!!window.chrome,i=t&&!window.chrome.webstore&&!window.chrome.runtime,n=0<Object.prototype.toString.call(window.HTMLElement).indexOf("Constructor")||window.safari&&window.safari.pushNotification,d=!!window.opr&&!!window.opr.addons||!!window.opera,u=!!window.StyleMedia,w=t&&!!navigator.userAgent.match(/edg/i),s=(o||d)&&!!window.CSS,m=!(t||n||r||d||!document.documentMode)),{get isChrome(){return o},get isChromeOrChromium(){return t},get isChromium(){return i},get isFirefox(){return r},get isSafari(){return n},get isOpera(){return d},get isEdge(){return u},get isEdgeChromium(){return w},get isIE(){return m},get isBlink(){return s}}}); |
{ | ||
"name": "browserama", | ||
"version":"3.2.0", | ||
"version":"3.2.2-build.7", | ||
"description": "A browser detection package that uses feature detection instead of user agent", | ||
@@ -44,2 +44,2 @@ "main": "out/browserama.min.js", | ||
} | ||
} | ||
} |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
6115
61
1