mirror of
https://github.com/apankrat/nullboard.git
synced 2025-08-11 07:34:26 +02:00
+ cb1/cb2 placeholders
This commit is contained in:
@@ -1015,11 +1015,13 @@
|
|||||||
* poor man's error handling -- $fixme
|
* poor man's error handling -- $fixme
|
||||||
*/
|
*/
|
||||||
window.onerror = function(message, file, line, col, e){
|
window.onerror = function(message, file, line, col, e){
|
||||||
|
var cb1;
|
||||||
alert("Error occurred: " + e.message);
|
alert("Error occurred: " + e.message);
|
||||||
return false;
|
return false;
|
||||||
};
|
};
|
||||||
|
|
||||||
window.addEventListener("error", function(e) {
|
window.addEventListener("error", function(e) {
|
||||||
|
var cb2;
|
||||||
alert("Error occurred: " + e.error.message);
|
alert("Error occurred: " + e.error.message);
|
||||||
return false;
|
return false;
|
||||||
})
|
})
|
||||||
|
Reference in New Issue
Block a user