Fixed the blinky script where it would erroneously show the banner on Firefox (conditions unknown)
parent
d5bc16ee0b
commit
70d78dcdb0
|
@ -8,27 +8,27 @@
|
|||
// and new IE Edge outputs to true now for window.chrome
|
||||
// and if not iOS Chrome check
|
||||
// so use the below updated condition
|
||||
var isChromium = window.chrome;
|
||||
var winNav = window.navigator;
|
||||
var vendorName = winNav.vendor;
|
||||
var isOpera = typeof window.opr !== "undefined";
|
||||
var isIEedge = winNav.userAgent.indexOf("Edg") > -1;
|
||||
var isIOSChrome = winNav.userAgent.match("CriOS");
|
||||
|
||||
if (isIOSChrome) {
|
||||
// get out of my website
|
||||
showNavWarn();
|
||||
} else if(
|
||||
isChromium !== null &&
|
||||
typeof isChromium !== "undefined" &&
|
||||
vendorName === "Google Inc." &&
|
||||
isOpera === false &&
|
||||
isIEedge === false
|
||||
) {
|
||||
showNavWarn(); // get out of my website
|
||||
} else {
|
||||
// not Google Chrome
|
||||
}
|
||||
// var isChromium = window.chrome;
|
||||
// var winNav = window.navigator;
|
||||
// var vendorName = winNav.vendor;
|
||||
// var isOpera = typeof window.opr !== "undefined";
|
||||
// var isIEedge = winNav.userAgent.indexOf("Edg") > -1;
|
||||
// var isIOSChrome = winNav.userAgent.match("CriOS");
|
||||
//
|
||||
// if (isIOSChrome) {
|
||||
// // get out of my website
|
||||
// showNavWarn();
|
||||
// } else if(
|
||||
// isChromium !== null &&
|
||||
// typeof isChromium !== "undefined" &&
|
||||
// vendorName === "Google Inc." &&
|
||||
// isOpera === false &&
|
||||
// isIEedge === false
|
||||
// ) {
|
||||
// showNavWarn(); // get out of my website
|
||||
// } else {
|
||||
// // not Google Chrome
|
||||
// }
|
||||
|
||||
// Dexrn: add disallowed ones here.
|
||||
|
||||
|
|
Loading…
Reference in New Issue