From 20f4225fd91a081bbf0cdb56d99879540eefaf22 Mon Sep 17 00:00:00 2001 From: Frank Date: Thu, 11 Apr 2024 14:58:55 +0200 Subject: [PATCH] chore: moved sentry to renderer --- src/main.ts | 3 --- src/renderer.ts | 2 ++ 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main.ts b/src/main.ts index a20b9f34..cf7e6308 100644 --- a/src/main.ts +++ b/src/main.ts @@ -14,7 +14,6 @@ import fs from 'node:fs'; import path, { basename } from 'path'; import { addDeeplink } from './app/deeplink'; import initDocumentDrive from './app/document-drive'; -import initSentry from './app/sentry'; import store from './app/store'; import { ConnectCrypto } from './services/crypto'; import { @@ -80,8 +79,6 @@ async function initApp() { ipcMain, ); - initSentry(); - // creates window const browserWindow = await createWindow({ async onReady() { diff --git a/src/renderer.ts b/src/renderer.ts index 8b9527eb..71321b7c 100644 --- a/src/renderer.ts +++ b/src/renderer.ts @@ -26,6 +26,7 @@ * ``` */ import { createRoot } from 'react-dom/client'; +import initSentry from './app/sentry'; import App from './components/app'; import './i18n'; import './index.css'; @@ -35,4 +36,5 @@ if (import.meta.env.MODE === 'development') { window.documentEditorDebugTools = new DocumentEditorDebugTools(); } +initSentry(); createRoot(document.getElementById('app')!).render(App);