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

Function getMode

src/mode.js:32–38  ·  view source on GitHub ↗
(opt_win)

Source from the content-addressed store, hash-verified

30 * @return {!ModeDef}
31 */
32export function getMode(opt_win) {
33 const win = opt_win || self;
34 if (win.__AMP_MODE) {
35 return win.__AMP_MODE;
36 }
37 return (win.__AMP_MODE = getMode_(win));
38}
39
40/**
41 * Provides info about the current app.

Callers 15

experiments.jsFile · 0.90
frame-metadata.jsFile · 0.90
constructorMethod · 0.90
integration.jsFile · 0.90
test-viewport.jsFile · 0.90
test-mode.jsFile · 0.90
test-amp-worker.jsFile · 0.90
createdCallbackMethod · 0.90
layoutCallbackMethod · 0.90

Calls 1

getMode_Function · 0.85

Tested by

no test coverage detected