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

Function isReferrerPolicySupported

src/pixel.js:141–143  ·  view source on GitHub ↗

* Check if element attribute "referrerPolicy" is supported by the browser. * Safari 11.1 does not support it yet. * * @return {boolean}

()

Source from the content-addressed store, hash-verified

139 * @return {boolean}
140 */
141function isReferrerPolicySupported() {
142 return 'referrerPolicy' in Image.prototype;
143}
144
145/**
146 * @param {!Window} win

Callers 1

createNoReferrerPixelFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected