mirror of
https://github.com/Novaloop-AG/healthchat-web.git
synced 2026-11-07 06:58:25 +00:00
Just include dev tools in the menu: it's handy
This commit is contained in:
@@ -117,8 +117,6 @@ electron.app.on('ready', () => {
|
|||||||
icon: `${__dirname}/../../vector/img/logo.png`,
|
icon: `${__dirname}/../../vector/img/logo.png`,
|
||||||
width: 1024, height: 768,
|
width: 1024, height: 768,
|
||||||
});
|
});
|
||||||
// A useful one to uncomment for debugging
|
|
||||||
//mainWindow.webContents.openDevTools();
|
|
||||||
mainWindow.loadURL(`file://${__dirname}/../../vector/index.html`);
|
mainWindow.loadURL(`file://${__dirname}/../../vector/index.html`);
|
||||||
electron.Menu.setApplicationMenu(VectorMenu);
|
electron.Menu.setApplicationMenu(VectorMenu);
|
||||||
|
|
||||||
|
|||||||
@@ -70,6 +70,13 @@ const template = [
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
role: 'togglefullscreen'
|
role: 'togglefullscreen'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: 'Toggle Developer Tools',
|
||||||
|
accelerator: process.platform == 'darwin' ? 'Alt+Command+I' : 'Ctrl+Shift+I',
|
||||||
|
click: function(item, focusedWindow) {
|
||||||
|
if (focusedWindow) focusedWindow.toggleDevTools();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user