feat: add error reporting

This commit is contained in:
Baptiste Grob
2020-11-03 18:55:25 +01:00
parent 0e9cdba215
commit 6cd4b8707a
8 changed files with 63 additions and 8 deletions

View File

@@ -3,6 +3,7 @@
declare const __VERSION__: string;
declare const __WEB__: boolean;
import { SNLog } from 'snjs';
import angular from 'angular';
import { configRoutes } from './routes';
@@ -64,11 +65,14 @@ if (__WEB__) {
(window as any).startApplication = startApplication;
}
function startApplication(
async function startApplication(
defaultSyncServerHost: string,
bridge: Bridge
) {
startErrorReporting();
SNLog.onLog = console.log;
await startErrorReporting();
angular.module('app', ['ngSanitize']);
// Config
@@ -142,4 +146,6 @@ function startApplication(
},
});
}
angular.bootstrap(document, ['app']);
}