DEV: Fix `InstallTrigger` deprecation warnings on Firefox (#18380)

"InstallTrigger is deprecated and will be removed in the future."
This commit is contained in:
Jarek Radosz 2022-09-29 13:31:29 +02:00 committed by GitHub
parent 5248fbbe24
commit 300db0615f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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) ||