add a menu to open dev tools for current webview
This commit is contained in:
@@ -145,7 +145,7 @@ function createTemplate(mainWindow, config, isDev) {
|
||||
visible: false,
|
||||
role: 'zoomout',
|
||||
}, separatorItem, {
|
||||
label: 'Toggle Developer Tools',
|
||||
label: 'Developer Tools for Application Wrapper',
|
||||
accelerator: (() => {
|
||||
if (process.platform === 'darwin') {
|
||||
return 'Alt+Command+I';
|
||||
@@ -157,6 +157,11 @@ function createTemplate(mainWindow, config, isDev) {
|
||||
focusedWindow.toggleDevTools();
|
||||
}
|
||||
},
|
||||
}, {
|
||||
label: 'Developer Tools for Current Server',
|
||||
click() {
|
||||
mainWindow.webContents.send('open-devtool');
|
||||
},
|
||||
}],
|
||||
});
|
||||
template.push({
|
||||
|
Reference in New Issue
Block a user