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.
This commit is contained in:
Abhigyan Khaund
2018-07-31 19:38:39 +05:30
committed by Akash Nimare
parent 3f6d256910
commit ed5096840d

View File

@@ -73,7 +73,8 @@ function createMainWindow() {
minHeight: 400,
webPreferences: {
plugins: true,
nodeIntegration: true
nodeIntegration: true,
partition: 'persist:webviewsession'
},
show: false
});