+ cb1/cb2 placeholders

This commit is contained in:
Alex Pankratov
2020-02-19 13:38:03 +01:00
parent e21aa1c3f1
commit 8dd057cd5b

View File

@@ -1015,11 +1015,13 @@
* poor man's error handling -- $fixme
*/
window.onerror = function(message, file, line, col, e){
var cb1;
alert("Error occurred: " + e.message);
return false;
};
window.addEventListener("error", function(e) {
var cb2;
alert("Error occurred: " + e.error.message);
return false;
})