Merge pull request #84 from manojVivek/bugfix

changed global to local reload
This commit is contained in:
Manoj Vivek 2020-05-21 08:48:47 +05:30 committed by GitHub
commit ac822d3412
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 3 deletions

View file

@ -128,9 +128,6 @@ const createWindow = async () => {
mainWindow.once('ready-to-show', () => {
mainWindow.show();
globalShortcut.register('CommandOrControl+R', () => {
mainWindow.webContents.send('reload-url');
})
});
ipcMain.on('http-auth-promt-response', (event, ...args) => {

View file

@ -237,6 +237,13 @@ export default class MenuBuilder {
},
]
: [
{
label: '&Reload',
accelerator: 'CommandOrControl+R',
click: () => {
this.mainWindow.webContents.send('reload-url');
},
},
{
label: 'Toggle &Full Screen',
accelerator: 'F11',