Forked from hardik-vala/universal_exception_handler.js
Created
November 28, 2021 03:23
-
-
Save SunsetMkt/01248543872ca4ca3a6dc10b5a59662c to your computer and use it in GitHub Desktop.
The one Javascript exception handler to rule them all.
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
/* I did not come up this but can't find the proper source. */ | |
try { | |
// Some shiz. | |
} catch (e) { | |
var xcb="http://stackoverflow.com/search?q=[js]" + e.message; | |
window.open(xcb, '_blank'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment