mirror of
https://github.com/apankrat/nullboard.git
synced 2025-08-09 06:36:55 +02:00
+ cb1/cb2 placeholders
This commit is contained in:
@@ -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;
|
||||
})
|
||||
|
Reference in New Issue
Block a user