From 8b1beb1e280bf170b51798c04aad03167c751940 Mon Sep 17 00:00:00 2001 From: Maxim Devaev Date: Mon, 10 Jul 2023 14:34:12 +0300 Subject: web: fixed firefox detection due deprecating InstallTrigger --- web/share/js/bb.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'web/share') diff --git a/web/share/js/bb.js b/web/share/js/bb.js index 0fa94ada..3a54e8e7 100644 --- a/web/share/js/bb.js +++ b/web/share/js/bb.js @@ -25,6 +25,7 @@ export var browser = new function() { // https://stackoverflow.com/questions/9847580/how-to-detect-safari-chrome-ie-firefox-and-opera-browser/9851769 + // https://github.com/fingerprintjs/fingerprintjs/discussions/641 // Opera 8.0+ let is_opera = ( @@ -34,7 +35,7 @@ export var browser = new function() { ); // Firefox 1.0+ - let is_firefox = (typeof InstallTrigger !== "undefined"); + let is_firefox = (typeof mozInnerScreenX !== "undefined"); // Safari 3.0+ "[object HTMLElementConstructor]" let is_safari = (function() { -- cgit v1.2.3