Skip to content
This repository has been archived by the owner on Sep 22, 2021. It is now read-only.

Commit

Permalink
Persist cookie fix when you delete an account
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas101 committed Sep 19, 2016
1 parent bddbac8 commit 236030d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/src/app/windows/MailboxesSessionManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ class MailboxesSessionManager {
artificiallyPersistCookies (session, partition) {
if (this.persistCookieThrottle[partition] !== undefined) { return }
const mailbox = this.getMailboxFromPartition(partition)
if (!mailbox.artificiallyPersistCookies) { return }
if (!mailbox || !mailbox.artificiallyPersistCookies) { return }

this.persistCookieThrottle[partition] = setTimeout(() => {
session.cookies.get({ session: true }, (error, cookies) => {
Expand Down

0 comments on commit 236030d

Please sign in to comment.