Hi, my Chrome app tries to make a XMLHttpRequest and got an error/exception.
Manually inspect the page console, see that this error printed out:
I want to capture this error/ exception from my Java Script program and have tried different methods:
window.onerror = function(errMsg .......) {}
window.addEventListener("error" .....)
redirect console error to my own function s.th. like window.console.error = myFunc;
function myFunc(msg) {
//do something with msg
}
None of them works, neither try/catch.
You help would be much appreciated.
H