MCPcopy
hub / github.com/ampproject/amphtml / getAmpRuntimeTypeParameter

Function getAmpRuntimeTypeParameter

ads/google/a4a/utils.js:990–993  ·  view source on GitHub ↗
(win)

Source from the content-addressed store, hash-verified

988 * @visibleForTesting
989 */
990export function getAmpRuntimeTypeParameter(win) {
991 const art = getBinaryTypeNumericalCode(getBinaryType(win));
992 return isCdnProxy(win) && art != '0' ? art : null;
993}
994
995/**
996 * Checks if the `always-serve-npa` attribute is present and valid

Callers 2

test-utils.jsFile · 0.90
googlePageParametersFunction · 0.70

Calls 3

getBinaryTypeFunction · 0.85
isCdnProxyFunction · 0.70

Tested by

no test coverage detected