Find the destructuring or assignment, for example const myFetch = window.fetch or const { fetch } = window. Expected: that line is where the binding was lost.

Replace it with a wrapper: const myFetch = (...args) => window.fetch(...args). Expected: the wrapper always invokes fetch as a method of window.

Alternatively bind once: const myFetch = window.fetch.bind(window). Expected: calls through myFetch no longer throw.

Update call sites to use the wrapper consistently and remove any this-based fetch calls inside plain objects. Expected: no unbound references to fetch remain in the module.

Reload the page and run the original request. Expected: the request reaches the network panel instead of throwing synchronously.