MCPcopy Create free account
hub / github.com/ampproject/amphtml / isFirefox

Function isFirefox

src/preact/utils/platform.js:49–51  ·  view source on GitHub ↗

* Whether the current browser is a Firefox browser. * @return {boolean}

()

Source from the content-addressed store, hash-verified

47 * @return {boolean}
48 */
49 isFirefox() {
50 return /Firefox|FxiOS/i.test(self.navigator.userAgent) && !this.isEdge();
51 },
52
53 /**
54 * Whether the current browser is an Opera browser.

Callers

nothing calls this directly

Calls 2

isEdgeMethod · 0.80
testMethod · 0.45

Tested by

no test coverage detected