DEV: Fix `InstallTrigger` deprecation warnings on Firefox (#18380)
"InstallTrigger is deprecated and will be removed in the future."
This commit is contained in:
parent
5248fbbe24
commit
300db0615f
|
@ -22,7 +22,7 @@ export default {
|
|||
caps.isAndroid = ua.includes("Android");
|
||||
caps.isWinphone = ua.includes("Windows Phone");
|
||||
caps.isOpera = !!window.opera || ua.includes(" OPR/");
|
||||
caps.isFirefox = typeof InstallTrigger !== "undefined";
|
||||
caps.isFirefox = ua.includes("Firefox");
|
||||
caps.isChrome = !!window.chrome && !caps.isOpera;
|
||||
caps.isSafari =
|
||||
/Constructor/.test(window.HTMLElement) ||
|
||||
|
|
Loading…
Reference in New Issue