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);