Skip to content

Instantly share code, notes, and snippets.

@bmeurer
Created March 27, 2023 14:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bmeurer/fe7c96d6e53a8168c44c5bdaa62734ce to your computer and use it in GitHub Desktop.
Save bmeurer/fe7c96d6e53a8168c44c5bdaa62734ce to your computer and use it in GitHub Desktop.
const originalError = console.error;
console.error = function(...args) {
originalError(...args, "foo");
}
//# sourceMappingURL=data:...
{
"version":3,
"sources":["devtools.js"],
"sourcesContent":"const originalError = console.error;\nconsole.error = function(...args) {\n originalError(...args, "foo");\n}",
"x_google_ignoreList": [0]
}
const originalError = console.error;
console.error = function(...args) {
originalError(...args, "foo");
}
<script>
const originalError = console.error;
console.error = function(...args) {
originalError(...args, "foo");
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment