From ed5096840d32bb8c3346d9c6cf9a336c97eaef22 Mon Sep 17 00:00:00 2001 From: Abhigyan Khaund Date: Tue, 31 Jul 2018 19:38:39 +0530 Subject: [PATCH] attachments: Fix failing attached file downloads. This commit fixes the failing download files that had occurred due to the session not being the same in the browserWindow and the webview. This made the uploaded files unavailable to browserWindow for download. This fix adds the persist session to the browserWindow. Fixes: #523. --- app/main/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/main/index.js b/app/main/index.js index 0d7bc110..3c97622d 100644 --- a/app/main/index.js +++ b/app/main/index.js @@ -73,7 +73,8 @@ function createMainWindow() { minHeight: 400, webPreferences: { plugins: true, - nodeIntegration: true + nodeIntegration: true, + partition: 'persist:webviewsession' }, show: false });