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
@ -147,25 +147,6 @@ function createMenu(nativefierVersion, onQuit, onGoBack, onGoForward, onZoomIn,
|
||||
focusedWindow.reload();
|
||||
});
|
||||
});
|
||||
}
|
||||
});
|
||||
} 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');
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user