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

Function getDevelopmentBootstrapBaseUrl

src/3p-frame.js:274–284  ·  view source on GitHub ↗
(parentWindow, srcFileBasename)

Source from the content-addressed store, hash-verified

272 * @return {string}
273 */
274export function getDevelopmentBootstrapBaseUrl(parentWindow, srcFileBasename) {
275 return (
276 overrideBootstrapBaseUrl ||
277 getAdsLocalhost(parentWindow) +
278 '/dist.3p/' +
279 (mode.isMinified()
280 ? `${mode.version()}/${srcFileBasename}`
281 : `current/${srcFileBasename}.max`) +
282 '.html'
283 );
284}
285
286/**
287 * @param {!Window} win

Callers 1

Calls 1

getAdsLocalhostFunction · 0.85

Tested by

no test coverage detected