Skip to content

Commit

Permalink
an attempt to fix #8
Browse files Browse the repository at this point in the history
  • Loading branch information
jammy committed Oct 14, 2019
1 parent b3965ce commit 8070711
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ emitter.addListener((request, sender, sendResponse) => {
name: request.data.name,
value: request.data.value,
secure: true,
expirationDate: Math.floor(+new Date(+new Date() + 31536e6) / 1000), // expiry 1 year from now
}, (cookie) => sendResponse(cookie));
} else if (request.method === 'removeCookie') {
chrome.cookies.remove({
Expand Down Expand Up @@ -47,7 +48,7 @@ emitter.addListener((request, sender, sendResponse) => {
name: '_session_auth_key',
value: request.data.cookie,
secure: true,
SameSiteStatus: 'no_restriction'
SameSiteStatus: 'no_restriction',
}, () => fetchNewCookie());
} else fetchNewCookie();
}
Expand Down

0 comments on commit 8070711

Please sign in to comment.