diff options
Diffstat (limited to 'app/error-handler.js')
-rw-r--r-- | app/error-handler.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/error-handler.js b/app/error-handler.js index 96dc926..f02f535 100644 --- a/app/error-handler.js +++ b/app/error-handler.js @@ -5,7 +5,7 @@ // No ES6 can be used in this file since it's used for the translation /* eslint-disable prefer-arrow-callback */ -(function() { +(function _scope() { "use strict"; // Fallback for all uncought errors @@ -53,6 +53,6 @@ // from being printed to the browser console. return false; } - window.addEventListener('error', function (evt) { handleError(evt, evt.error); }); - window.addEventListener('unhandledrejection', function (evt) { handleError(evt.reason, evt.reason); }); + window.addEventListener('error', function onerror(evt) { handleError(evt, evt.error); }); + window.addEventListener('unhandledrejection', function onreject(evt) { handleError(evt.reason, evt.reason); }); })(); |