Skip to content

Commit

Permalink
Removing Firefox detection using InstallTrigger
Browse files Browse the repository at this point in the history
  • Loading branch information
kirtan-desai authored and chancancode committed Jun 21, 2022
1 parent f4e8925 commit b932fd2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/@ember/-internals/browser-environment/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import hasDom from './lib/has-dom';

declare const InstallTrigger: unknown;
declare const chrome: unknown;
declare const opera: unknown;
declare const MSInputMethodContext: unknown;
Expand All @@ -12,7 +11,7 @@ export const location = hasDom ? self.location : null;
export const history = hasDom ? self.history : null;
export const userAgent = hasDom ? self.navigator.userAgent : 'Lynx (textmode)';
export const isChrome = hasDom ? typeof chrome === 'object' && !(typeof opera === 'object') : false;
export const isFirefox = hasDom ? typeof InstallTrigger !== 'undefined' : false;
export const isFirefox = hasDom ? /Firefox|FxiOS/.test(userAgent) : false;
export const isIE = hasDom
? typeof MSInputMethodContext !== 'undefined' && typeof documentMode !== 'undefined'
: false;

0 comments on commit b932fd2

Please sign in to comment.