From 70d78dcdb0a39ca9239baeef0b5db6ea6a58aff7 Mon Sep 17 00:00:00 2001 From: Gianmarco Gargiulo Date: Fri, 12 Apr 2024 21:24:04 +0200 Subject: [PATCH] Fixed the blinky script where it would erroneously show the banner on Firefox (conditions unknown) --- static/js/blinky.js | 42 +++++++++++++++++++++--------------------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/static/js/blinky.js b/static/js/blinky.js index f91a163..792b310 100644 --- a/static/js/blinky.js +++ b/static/js/blinky.js @@ -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.