* Restores the function @param actualFetch to `window.fetch` * and puts our fetch proxy back onto `window._sentryFetchProxy`.
(actualFetch: typeof fetch)
| 81 | * and puts our fetch proxy back onto `window._sentryFetchProxy`. |
| 82 | */ |
| 83 | function restoreFetch(actualFetch: typeof fetch): void { |
| 84 | const globalWithSentryFetchProxy: WindowWithSentryFetchProxy = WINDOW; |
| 85 | |
| 86 | // eslint-disable-next-line @typescript-eslint/unbound-method |
| 87 | globalWithSentryFetchProxy._sentryFetchProxy = globalWithSentryFetchProxy.fetch; |
| 88 | globalWithSentryFetchProxy.fetch = actualFetch; |
| 89 | } |