mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 12:28:42 +00:00
chore(electron): temporary remove @sentry/electron due to version mismatch (#7001)
This commit is contained in:
@@ -2,7 +2,6 @@ import './security-restrictions';
|
||||
|
||||
import path from 'node:path';
|
||||
|
||||
import { init, IPCMode } from '@sentry/electron/main';
|
||||
import { app } from 'electron';
|
||||
|
||||
import { createApplicationMenu } from './application-menu/create';
|
||||
@@ -13,7 +12,6 @@ import { registerEvents } from './events';
|
||||
import { registerHandlers } from './handlers';
|
||||
import { logger } from './logger';
|
||||
import { registerProtocol } from './protocol';
|
||||
import { isOnline } from './ui/handlers';
|
||||
import { registerUpdater } from './updater';
|
||||
import { launch } from './windows-manager/launcher';
|
||||
import { launchStage } from './windows-manager/stage';
|
||||
@@ -65,17 +63,6 @@ app.on('activate', () => {
|
||||
|
||||
setupDeepLink(app);
|
||||
|
||||
// https://docs.sentry.io/platforms/javascript/guides/electron/
|
||||
if (process.env.SENTRY_DSN) {
|
||||
init({
|
||||
dsn: process.env.SENTRY_DSN,
|
||||
ipcMode: IPCMode.Protocol,
|
||||
transportOptions: {
|
||||
shouldSend: () => isOnline,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Create app window when background process will be ready
|
||||
*/
|
||||
|
||||
@@ -1,2 +1 @@
|
||||
import '@sentry/electron/preload';
|
||||
import './bootstrap';
|
||||
|
||||
Reference in New Issue
Block a user