diff --git a/ayanova/src/main.js b/ayanova/src/main.js index 58904e42..ada6ed75 100644 --- a/ayanova/src/main.js +++ b/ayanova/src/main.js @@ -106,12 +106,13 @@ window.$gz = { Vue.config.errorHandler = errorHandler.handleVueError; window.onerror = errorHandler.handleGeneralError; -//unhandled rejection handler here -window.addEventListener("unhandledrejection", function(event) { - // the event object has two special properties: - alert(event.promise); // [object Promise] - the promise that generated the error - alert(event.reason); // Error: Whoops! - the unhandled error object -}); +// //unhandled rejection handler +//shouldn't need this +// window.addEventListener("unhandledrejection", function(event) { +// // the event object has two special properties: +// alert(event.promise); // [object Promise] - the promise that generated the error +// alert(event.reason); // Error: Whoops! - the unhandled error object +// }); //warnings, only occur by default in debug mode not production Vue.config.warnHandler = errorHandler.handleVueWarning;