|
|
|
@ -67,6 +67,29 @@ const helpSubmenu = [
|
|
|
|
|
shell.openExternal('https://gitter.im/saenzramiro/rambox'); |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
label: `Tools`, |
|
|
|
|
submenu: [ |
|
|
|
|
{ |
|
|
|
|
label: `Clear Cache`, |
|
|
|
|
click(item, win) { |
|
|
|
|
win.webContents.session.clearCache(function() { |
|
|
|
|
win.reload(); |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
label: `Clear Local Storage`, |
|
|
|
|
click(item, win) { |
|
|
|
|
win.webContents.session.clearStorageData({ |
|
|
|
|
storages: ['localstorage'] |
|
|
|
|
}, function() { |
|
|
|
|
win.reload(); |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
] |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
type: 'separator' |
|
|
|
|
}, |
|
|
|
|