I'm looking for something similar to what this guy was trying to do: Where to read console messages from background.js in a Chrome extension? but I can't find an answer on whether or not there is a way to listen and log console errors as they come in.
I don't need the content as the above commenter does, just to have some action performed if an error message appears on the console.
I'm trying to do something like this:
addEventListener("error", function(){
...some function...
});
where the function is triggered every time an error appears, but I can't seem to find anything that will do this in the Chrome developer documentation.
Anyone know of a solution?