Skip to content

Commit

Permalink
chore: moved sentry to renderer
Browse files Browse the repository at this point in the history
  • Loading branch information
froid1911 committed Apr 11, 2024
1 parent c4cfef1 commit 20f4225
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -80,8 +79,6 @@ async function initApp() {
ipcMain,
);

initSentry();

// creates window
const browserWindow = await createWindow({
async onReady() {
Expand Down
2 changes: 2 additions & 0 deletions src/renderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand All @@ -35,4 +36,5 @@ if (import.meta.env.MODE === 'development') {
window.documentEditorDebugTools = new DocumentEditorDebugTools();
}

initSentry();
createRoot(document.getElementById('app')!).render(App);

0 comments on commit 20f4225

Please sign in to comment.