MCPcopy Create free account
hub / github.com/bigskysoftware/_hyperscript / restoreFetch

Function restoreFetch

test/ext/eventsource.js:44–48  ·  view source on GitHub ↗

Restore original fetch

(page)

Source from the content-addressed store, hash-verified

42
43/** Restore original fetch */
44async function restoreFetch(page) {
45 await page.evaluate(() => {
46 if (window.__origFetch) window.fetch = window.__origFetch;
47 });
48}
49
50test.describe('eventsource extension', () => {
51

Callers 1

eventsource.jsFile · 0.85

Calls 1

evaluateMethod · 0.45

Tested by

no test coverage detected