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

Function install

src/polyfills/fetch.js:289–304  ·  view source on GitHub ↗
(win)

Source from the content-addressed store, hash-verified

287 * @param {Window} win
288 */
289export function install(win) {
290 if (!win.fetch) {
291 Object.defineProperty(win, 'fetch', {
292 value: fetchPolyfill,
293 writable: true,
294 enumerable: true,
295 configurable: true,
296 });
297 Object.defineProperty(win, 'Response', {
298 value: Response,
299 writable: true,
300 enumerable: false,
301 configurable: true,
302 });
303 }
304}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected