mirror of
https://github.com/Llewellynvdm/nativefier.git
synced 2025-01-11 01:32:04 +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();
|
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