diff --git a/src/application/services/useErrorCatcher.ts b/src/application/services/useErrorCatcher.ts index 5517d1a9..6a99a206 100644 --- a/src/application/services/useErrorCatcher.ts +++ b/src/application/services/useErrorCatcher.ts @@ -12,17 +12,12 @@ declare global { } export const useErrorCatcher = createSharedComposable(() => { - /** - * Hawk catcher instance - */ - let hawk: typeof HawkCatcher | undefined; - /** * Initializes error catcher * * @param app - vue app instance */ - function init(app: App) { + function init(app: App): void { new HawkCatcher({ token: import.meta.env.VITE_HAWK_TOKEN, vue: app, diff --git a/src/index.ts b/src/index.ts index b56ca057..5a274b00 100644 --- a/src/index.ts +++ b/src/index.ts @@ -14,4 +14,5 @@ app.use(i18n); app.mount('#app'); const { init } = useErrorCatcher(); + init(app);