From 6d520bbb4ec6ba4e8687fc64af7aa512959878df Mon Sep 17 00:00:00 2001 From: Nicholas Tay Date: Sun, 14 Aug 2022 18:11:23 +1000 Subject: Disable http cache + allow devtools --- main.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/main.js b/main.js index b528725..71c3456 100644 --- a/main.js +++ b/main.js @@ -26,6 +26,9 @@ if (process.platform === 'linux') app.commandLine.appendSwitch('ppapi-flash-path', flashPath); app.commandLine.appendSwitch('ppapi-flash-version', '32.0.0.371'); +// Disable cache - might update something on the game side and just don't cache anything. +app.commandLine.appendSwitch('disable-http-cache'); + // Menu // https://www.electronjs.org/docs/latest/api/menu const menuTemplate = [ @@ -56,6 +59,7 @@ const menuTemplate = [ submenu: [ { role: 'reload' }, { role: 'forceReload' }, + { role: 'toggleDevTools' }, { type: 'separator' }, { role: 'resetZoom' }, { role: 'zoomIn' }, -- cgit