From f426713aef3a20f6ecdc57a0a6a7504295911681 Mon Sep 17 00:00:00 2001 From: Ramiro Saenz Date: Mon, 26 Sep 2016 15:08:43 -0300 Subject: [PATCH] Added Tools Clear Cache and Local Storage --- electron/menu.js | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/electron/menu.js b/electron/menu.js index 1cdc2f7e..06f693b7 100644 --- a/electron/menu.js +++ b/electron/menu.js @@ -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' },