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

Function isWebKit

src/preact/utils/platform.js:76–78  ·  view source on GitHub ↗

* Whether the current browser is based on the WebKit engine. * @return {boolean}

()

Source from the content-addressed store, hash-verified

74 * @return {boolean}
75 */
76 isWebKit() {
77 return /WebKit/i.test(self.navigator.userAgent) && !this.isEdge();
78 },
79
80 /**
81 * Whether the current browser is running on Windows.

Callers

nothing calls this directly

Calls 2

isEdgeMethod · 0.80
testMethod · 0.45

Tested by

no test coverage detected