There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.
TypeScript appcrdteditorelectronknowledge-basemarkdownmironotesnotionnotion-alternativerustrust-langrust-languagetabletableviewwhiteboardwikiworkspace
fix(electron): do not always enable devtools detach mode (#8273)
pengx177a26c76e5333
diff --git a/packages/frontend/apps/electron/src/main/windows-manager/main-window.ts b/packages/frontend/apps/electron/src/main/windows-manager/main-window.tsindex fccf07afbf..19cc241ff1 100644--- a/packages/frontend/apps/electron/src/main/windows-manager/main-window.ts+++ b/packages/frontend/apps/electron/src/main/windows-manager/main-window.ts@@ -258,9 +258,7 @@ export async function openUrlInHiddenWindow(urlObj: URL) {});if (BUILD_CONFIG.debug) {- win.webContents.openDevTools({- mode: 'detach',- });+ win.webContents.openDevTools();}win.on('close', e => {diff --git a/packages/frontend/apps/electron/src/main/windows-manager/tab-views.ts b/packages/frontend/apps/electron/src/main/windows-manager/tab-views.tsindex 73455b6c49..e8fa68104d 100644--- a/packages/frontend/apps/electron/src/main/windows-manager/tab-views.ts+++ b/packages/frontend/apps/electron/src/main/windows-manager/tab-views.ts@@ -817,9 +817,7 @@ export class WebContentViewsManager {view.webContents.loadURL(shellViewUrl).catch(err => logger.error(err));if (isDev) {- view.webContents.openDevTools({- mode: 'detach',- });+ view.webContents.openDevTools();}}@@ -1003,17 +1001,13 @@ export const showDevTools = (id?: string) => {getCustomThemeWindow().then(w => {if (w && w.isFocused()) {- w.webContents.openDevTools({- mode: 'detach',- });+ w.webContents.openDevTools();} else {const view = id? WebContentViewsManager.instance.getViewById(id): WebContentViewsManager.instance.activeWorkbenchView;if (view) {- view.webContents.openDevTools({- mode: 'detach',- });+ view.webContents.openDevTools();}}})