Skip to content

Commit

Permalink
attachments: Fix failing attached file downloads.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
abhigyank authored and akashnimare committed Jul 31, 2018
1 parent 3f6d256 commit ed50968
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/main/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ function createMainWindow() {
minHeight: 400,
webPreferences: {
plugins: true,
nodeIntegration: true
nodeIntegration: true,
partition: 'persist:webviewsession'
},
show: false
});
Expand Down

0 comments on commit ed50968

Please sign in to comment.