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

Method isWebKit

src/service/platform-impl.js:93–95  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

91 * @return {boolean}
92 */
93 isWebKit() {
94 return /WebKit/i.test(this.navigator_.userAgent) && !this.isEdge();
95 }
96
97 /**
98 * Whether the current browser is running on Windows.

Callers 2

testUserAgentFunction · 0.95
getScrollingElementMethod · 0.80

Calls 2

isEdgeMethod · 0.95
testMethod · 0.45

Tested by

no test coverage detected