mirror of
https://github.com/Llewellynvdm/nativefier.git
synced 2024-12-23 02:28:55 +00:00
remove clear cache menu item
This commit is contained in:
parent
df6f958904
commit
546bad7035
@ -148,25 +148,6 @@ function createMenu(nativefierVersion, onQuit, onGoBack, onGoForward, onZoomIn,
|
||||
});
|
||||
});
|
||||
}
|
||||
});
|
||||
} else {
|
||||
// Not sure what else to do here
|
||||
dialog.showErrorBox('No focused window', 'No focused window');
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
label: 'Clear Cache',
|
||||
click: (item, focusedWindow) => {
|
||||
if (focusedWindow) {
|
||||
focusedWindow.webContents.session.clearCache(() => {
|
||||
focusedWindow.reload();
|
||||
});
|
||||
} else {
|
||||
// Not sure what else to do here
|
||||
dialog.showErrorBox('No focused window', 'No focused window');
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
label: 'Toggle Window Developer Tools',
|
||||
|
Loading…
Reference in New Issue
Block a user