Skip to content

Commit 876155f

Browse files
Merge pull request #27 from Matir/patch-1
Declare cookies variable
2 parents 3e479c9 + cfdf811 commit 876155f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

extension/src/bg/background.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,7 @@ chrome.webRequest.onHeadersReceived.addListener(function(details) {
443443
}
444444

445445
// Rewrite Set-Cookie to expose it in fetch()
446-
cookies = []
446+
var cookies = []
447447
details.responseHeaders.map(responseHeader => {
448448
if(responseHeader.name.toLowerCase() === 'set-cookie') {
449449
cookies.push(responseHeader.value);

0 commit comments

Comments
 (0)