aboutsummaryrefslogtreecommitdiff
path: root/main.js
diff options
context:
space:
mode:
authorSaúl Ibarra Corretgé <s@saghul.net>2023-05-09 13:12:41 +0200
committerSaúl Ibarra Corretgé <s@saghul.net>2023-05-09 15:18:42 +0200
commitdf4bd258d2aac19945edb5c3ea1daee281d73bce (patch)
tree18a48b007be72ce6aca04d1766a1b397800582c2 /main.js
parent9a73c1e7c30f419cd7c91e52af856f029109fdc0 (diff)
fix(main) clear cache on startup when in dev mode
Diffstat (limited to 'main.js')
-rw-r--r--main.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/main.js b/main.js
index df29301..b4c5c56 100644
--- a/main.js
+++ b/main.js
@@ -234,6 +234,10 @@ function createJitsiMeetWindow() {
mainWindow.webContents.setWindowOpenHandler(windowOpenHandler);
+ if (isDev) {
+ mainWindow.webContents.session.clearCache();
+ }
+
// Block access to file:// URLs.
const fileFilter = {
urls: [ 'file://*' ]