Created
January 5, 2021 11:50
-
-
Save zlatkov/702e065a5b68de2556ed44aaa8457ae0 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
var oldOnErrorHandler = window.onerror; | |
window.onerror = (msg, url, line, column, err) => { | |
If (oldOnErrorHandler) { | |
// Call any previously assigned handler. | |
oldOnErrorHandler.apply(this, arguments); | |
} | |
// The rest of your code | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment