File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -84,9 +84,10 @@ if ((typeof document !== 'undefined') && (typeof window !== 'undefined') && (typ
8484 }
8585 });
8686
87- if (browser.isChrome || browser.isChromeHeadless)
87+ if (browser.chromeVersion) {
88+ browser.isFirefox = false;
8889 browser.isWin = navigator.userAgentData.platform === 'Windows';
89- else {
90+ } else {
9091 browser.isFirefox = navigator.userAgent.indexOf('Firefox') >= 0;
9192 browser.isSafari = Object.prototype.toString.call(window.HTMLElement).indexOf('Constructor') > 0;
9293 browser.isChrome = !!window.chrome;
Original file line number Diff line number Diff line change @@ -78,9 +78,10 @@ if ((typeof document !== 'undefined') && (typeof window !== 'undefined') && (typ
7878 }
7979 } ) ;
8080
81- if ( browser . chromeVersion )
81+ if ( browser . chromeVersion ) {
82+ browser . isFirefox = false ;
8283 browser . isWin = navigator . userAgentData . platform === 'Windows' ;
83- else {
84+ } else {
8485 browser . isFirefox = navigator . userAgent . indexOf ( 'Firefox' ) >= 0 ;
8586 browser . isSafari = Object . prototype . toString . call ( window . HTMLElement ) . indexOf ( 'Constructor' ) > 0 ;
8687 browser . isChrome = ! ! window . chrome ;
You can’t perform that action at this time.
0 commit comments