mirror of
https://github.com/kiwix/kiwix-js-pwa.git
synced 2025-09-11 05:08:43 -04:00
Better error reporting
Former-commit-id: 5d979b4205ed196b5d5a8b9000ce5658e1dab288 [formerly 82a32c1c4c703d3eff7feca9dc7681883c0fc4ef] Former-commit-id: 16d64a99a597a87fe4ece204fda4c5eb4c330bc1
This commit is contained in:
parent
2a7e6a5183
commit
51db12dcad
@ -23,8 +23,8 @@
|
||||
'use strict';
|
||||
|
||||
// Set a global error handler to prevent app crashes
|
||||
window.onerror = function (msg, url) {
|
||||
console.error('Error caught in app [' + url + ']:\n' + msg, msg);
|
||||
window.onerror = function (msg, url, line, col, error) {
|
||||
console.error('Error caught in app [' + url + ':' + line + ']:\n' + msg, error);
|
||||
return true;
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user