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

Function isWebKit

ads/inabox/position-observer.js:172–174  ·  view source on GitHub ↗

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

(ua)

Source from the content-addressed store, hash-verified

170 * @return {boolean}
171 */
172function isWebKit(ua) {
173 return /WebKit/i.test(ua) && !/Edge/i.test(ua);
174}
175
176/**
177 * Use an existing position observer within the window, if any.

Callers 1

getScrollingElementFunction · 0.70

Calls 1

testMethod · 0.45

Tested by

no test coverage detected