Skip to content

Commit c5f232c

Browse files
committed
Don't use deprecated InstallTrigger for Firefox detection
Fixes #4033
1 parent 7a9fc8d commit c5f232c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/utils.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ if (window.browser && browser.runtime && browser.runtime.getBrowserInfo)
2020
var Utils = {
2121
isFirefox: (function() {
2222
// We want this browser check to also cover Firefox variants, like LibreWolf. See #3773.
23-
const isFirefox = typeof InstallTrigger !== 'undefined';
23+
const isFirefox = (typeof browser === "object" && browser.runtime.getURL("").startsWith("moz"));
2424
return () => isFirefox;
2525
})(),
2626

0 commit comments

Comments
 (0)