MCPcopy Index your code
hub / github.com/ampproject/amphtml / getAmpConfig

Function getAmpConfig

3p/frame-metadata.js:62–69  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

60 * @return {{mode: !Object, experimentToggles: !Object}}
61 */
62export function getAmpConfig() {
63 const metadata = allMetadata();
64
65 return {
66 mode: metadata['attributes']['_context'].mode,
67 experimentToggles: metadata['attributes']['_context'].experimentToggles,
68 };
69}
70
71/**
72 * @return {!JsonObject}

Callers 1

initFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected