diff options
author | Maxim Devaev <[email protected]> | 2023-07-10 14:34:12 +0300 |
---|---|---|
committer | Maxim Devaev <[email protected]> | 2023-07-10 14:34:12 +0300 |
commit | 8b1beb1e280bf170b51798c04aad03167c751940 (patch) | |
tree | 5af9194099ffb2e7c950b7b5b91657275b985812 | |
parent | c562e640b560db152d2043fa2207da002eb43814 (diff) |
web: fixed firefox detection due deprecating InstallTrigger
-rw-r--r-- | web/share/js/bb.js | 3 |
1 files changed, 2 insertions, 1 deletions
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() { |