I try to rewrite the fetch to fetch request error event to intercept, code 164 line.
However, this error occurs when initiating a fetch request: TypeError: Failed to execute 'fetch' on Window': Illegal invocation.
In the fetch . I try to through bind to fix this, but not ideal
window.fetch.bind(window, 'httas')
.then(res => console.log(res.json()))
.then(async res => console.log('====='))
.catch(error => console.log(error, '--=-=-=-=-=-='));
I try to rewrite the fetch to fetch request error event to intercept, code 164 line.
However, this error occurs when initiating a fetch request:
TypeError: Failed to execute 'fetch' on Window': Illegal invocation.In the fetch . I try to through
bindto fix this, but not idealwindow.fetch.bind(window, 'httas')
.then(res => console.log(res.json()))
.then(async res => console.log('====='))
.catch(error => console.log(error, '--=-=-=-=-=-='));