-
-
Save Steffan153/7081db837868b6d9459e954a87430d36 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
const prev = XMLHttpRequest.prototype.open; | |
XMLHttpRequest.prototype.open = function(method, url, ...args) { | |
if (url === `insert correct url here`) { | |
setTimeout(() => { | |
prev.apply(this, method, url, ...args); | |
}, 5000); | |
} else { | |
prev.apply(this, method, url, ...args); | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment