Skip to content

Commit

Permalink
open DevTool detach by default
Browse files Browse the repository at this point in the history
  • Loading branch information
sebbenmbarek committed Nov 28, 2022
1 parent b15dac9 commit 7d8c65c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/main/src/handlers/runtime/toolbar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export const openToolsMenu = async (message: RuntimeMessage) => {
label: 'Nav Dev Tools',
click: () => {
if (workspace && workspace.window) {
workspace.window.webContents.openDevTools();
workspace.window.webContents.openDevTools({ mode: 'detach' });
}
},
},
Expand All @@ -23,7 +23,7 @@ export const openToolsMenu = async (message: RuntimeMessage) => {
if (workspace && workspace.selectedTab) {
const selectedTab = runtime.getView(workspace.selectedTab);
if (selectedTab && selectedTab.content) {
selectedTab.content.webContents.openDevTools();
selectedTab.content.webContents.openDevTools({ mode: 'detach' });
}
}
},
Expand Down

0 comments on commit 7d8c65c

Please sign in to comment.