2
2
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:
Gary Moon 2016-02-24 09:44:39 -05:00
parent df6f958904
commit 546bad7035

View File

@ -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',