mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 21:05:19 +00:00
feat(electron): enable vscode debugger for electron (#9333)
This commit is contained in:
@@ -4,6 +4,7 @@ import type { Display } from 'electron';
|
||||
import { BrowserWindow, screen } from 'electron';
|
||||
|
||||
import { isMacOS } from '../../shared/utils';
|
||||
import { isDev } from '../config';
|
||||
import { onboardingViewUrl } from '../constants';
|
||||
// import { getExposedMeta } from './exposed';
|
||||
import { logger } from '../logger';
|
||||
@@ -90,6 +91,10 @@ async function createOnboardingWindow(additionalArguments: string[]) {
|
||||
fullscreenAndCenter(browserWindow);
|
||||
});
|
||||
|
||||
if (isDev) {
|
||||
browserWindow.webContents.openDevTools();
|
||||
}
|
||||
|
||||
await browserWindow.loadURL(onboardingViewUrl);
|
||||
|
||||
return browserWindow;
|
||||
|
||||
Reference in New Issue
Block a user