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

Method getDevicePixelRatio

src/core/window/interface.js:67–70  ·  view source on GitHub ↗

* @static * @return {number}

()

Source from the content-addressed store, hash-verified

65 * @return {number}
66 */
67 static getDevicePixelRatio() {
68 // No matter the window, the device-pixel-ratio is always one.
69 return self.devicePixelRatio || 1;
70 }
71
72 /**
73 * @static

Callers 4

getPageParametersMethod · 0.80
updateSrc_Method · 0.80
updateSrc_Method · 0.80
getAdUrlMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected