mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2025-12-12 01:00:29 +08:00
web: fixed firefox detection due deprecating InstallTrigger
This commit is contained in:
parent
c562e640b5
commit
8b1beb1e28
@ -25,6 +25,7 @@
|
|||||||
|
|
||||||
export var browser = new function() {
|
export var browser = new function() {
|
||||||
// https://stackoverflow.com/questions/9847580/how-to-detect-safari-chrome-ie-firefox-and-opera-browser/9851769
|
// 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+
|
// Opera 8.0+
|
||||||
let is_opera = (
|
let is_opera = (
|
||||||
@ -34,7 +35,7 @@ export var browser = new function() {
|
|||||||
);
|
);
|
||||||
|
|
||||||
// Firefox 1.0+
|
// Firefox 1.0+
|
||||||
let is_firefox = (typeof InstallTrigger !== "undefined");
|
let is_firefox = (typeof mozInnerScreenX !== "undefined");
|
||||||
|
|
||||||
// Safari 3.0+ "[object HTMLElementConstructor]"
|
// Safari 3.0+ "[object HTMLElementConstructor]"
|
||||||
let is_safari = (function() {
|
let is_safari = (function() {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user