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

Function isLocalDev

src/core/mode/local-dev.js:11–17  ·  view source on GitHub ↗
(opt_win)

Source from the content-addressed store, hash-verified

9 * @return {boolean}
10 */
11export function isLocalDev(opt_win) {
12 if (isProd()) {
13 return false;
14 }
15
16 return !!self.AMP_CONFIG?.localDev || isTest(opt_win);
17}

Callers

nothing calls this directly

Calls 2

isProdFunction · 0.90
isTestFunction · 0.90

Tested by

no test coverage detected