From 236030d1c9fe3b7282e8f094fdce7d23d9125f14 Mon Sep 17 00:00:00 2001 From: Thomas Beverley Date: Mon, 19 Sep 2016 21:24:11 +0100 Subject: [PATCH] Persist cookie fix when you delete an account --- src/app/src/app/windows/MailboxesSessionManager.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/src/app/windows/MailboxesSessionManager.js b/src/app/src/app/windows/MailboxesSessionManager.js index b7f69b6c..8134f913 100644 --- a/src/app/src/app/windows/MailboxesSessionManager.js +++ b/src/app/src/app/windows/MailboxesSessionManager.js @@ -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) => {