Skip to content

Commit

Permalink
Merge pull request #1391 from bertdeblock/update-firefox-detection
Browse files Browse the repository at this point in the history
Update Firefox detection in `on` modifier test (remove use of `InstallTrigger`)
  • Loading branch information
locks authored Sep 1, 2022
2 parents 7c95a22 + 3897e5e commit cdfb8f9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ let global = window as any;
const isChrome = hasDom
? typeof global.chrome === 'object' && !(typeof global.opera === 'object')
: false;
const isFirefox = hasDom ? typeof global.InstallTrigger !== 'undefined' : false;
const isFirefox = hasDom ? /Firefox|FxiOS/.test(navigator.userAgent) : false;
const isIE11 = !global.ActiveXObject && 'ActiveXObject' in window;

interface Counters {
Expand Down

0 comments on commit cdfb8f9

Please sign in to comment.