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 new IE Edge outputs to true now for window.chrome
|
||||||
// and if not iOS Chrome check
|
// and if not iOS Chrome check
|
||||||
// so use the below updated condition
|
// so use the below updated condition
|
||||||
var isChromium = window.chrome;
|
// var isChromium = window.chrome;
|
||||||
var winNav = window.navigator;
|
// var winNav = window.navigator;
|
||||||
var vendorName = winNav.vendor;
|
// var vendorName = winNav.vendor;
|
||||||
var isOpera = typeof window.opr !== "undefined";
|
// var isOpera = typeof window.opr !== "undefined";
|
||||||
var isIEedge = winNav.userAgent.indexOf("Edg") > -1;
|
// var isIEedge = winNav.userAgent.indexOf("Edg") > -1;
|
||||||
var isIOSChrome = winNav.userAgent.match("CriOS");
|
// var isIOSChrome = winNav.userAgent.match("CriOS");
|
||||||
|
//
|
||||||
if (isIOSChrome) {
|
// if (isIOSChrome) {
|
||||||
// get out of my website
|
// // get out of my website
|
||||||
showNavWarn();
|
// showNavWarn();
|
||||||
} else if(
|
// } else if(
|
||||||
isChromium !== null &&
|
// isChromium !== null &&
|
||||||
typeof isChromium !== "undefined" &&
|
// typeof isChromium !== "undefined" &&
|
||||||
vendorName === "Google Inc." &&
|
// vendorName === "Google Inc." &&
|
||||||
isOpera === false &&
|
// isOpera === false &&
|
||||||
isIEedge === false
|
// isIEedge === false
|
||||||
) {
|
// ) {
|
||||||
showNavWarn(); // get out of my website
|
// showNavWarn(); // get out of my website
|
||||||
} else {
|
// } else {
|
||||||
// not Google Chrome
|
// // not Google Chrome
|
||||||
}
|
// }
|
||||||
|
|
||||||
// Dexrn: add disallowed ones here.
|
// Dexrn: add disallowed ones here.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue