Last active
April 5, 2024 12:16
-
-
Save airarm/7e8b64933db752a8d90208103fa3587d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
window.fetch = new Proxy(window.fetch, { | |
apply(actualFetch, that, args) { | |
const result = Reflect.apply(actualFetch, that, args); | |
result.then((response) => { | |
console.log("fetch completed!", args, response); | |
}); | |
return result; | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment