MCPcopy Create free account
hub / github.com/angular/angular / isFirefox

Function isFirefox

packages/router/test/with_platform_navigation.spec.ts:40–46  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

38/// <reference types="dom-navigation" />
39
40function isFirefox() {
41 const userAgent = navigator.userAgent.toLowerCase();
42 if (userAgent.indexOf('firefox') != -1) {
43 return true;
44 }
45 return false;
46}
47
48describe('withPlatformNavigation feature', () => {
49 beforeEach(() => {

Calls 1

indexOfMethod · 0.80

Tested by

no test coverage detected