diff --git a/bin/ion-dev.js b/bin/ion-dev.js index 0a2f6125..2442f618 100644 --- a/bin/ion-dev.js +++ b/bin/ion-dev.js @@ -36,11 +36,18 @@ window.IonicDevServer = { document.documentElement.classList.add('ion-diagnostics-cordova-ios'); } } + + window.onerror = function(msg, url, lineNo, columnNo, error) { + self.handleError(error); + }; }, handleError: function(err) { if (!err) return; + // Ignore HTTP errors + if(err.url || err.headers) return; + // Socket is ready so send this error to the server for prettifying if (this.socketReady) { var msg = {