mirror of
https://github.com/tubearchivist/browser-extension.git
synced 2024-11-22 11:40:13 +00:00
fix header building newline
This commit is contained in:
parent
adc37f4f5d
commit
fa0fecffcf
@ -151,9 +151,9 @@ async function sendCookies() {
|
|||||||
|
|
||||||
let cookieStores = await browserType.cookies.getAllCookieStores();
|
let cookieStores = await browserType.cookies.getAllCookieStores();
|
||||||
var cookieLines = [
|
var cookieLines = [
|
||||||
"# Netscape HTTP Cookie File\n",
|
"# Netscape HTTP Cookie File",
|
||||||
"# https://curl.haxx.se/rfc/cookie_spec.html\n",
|
"# https://curl.haxx.se/rfc/cookie_spec.html",
|
||||||
"# This is a generated file! Do not edit.\n\n"
|
"# This is a generated file! Do not edit.\n"
|
||||||
];
|
];
|
||||||
for (let i = 0; i < cookieStores.length; i++) {
|
for (let i = 0; i < cookieStores.length; i++) {
|
||||||
const cookieStore = cookieStores[i];
|
const cookieStore = cookieStores[i];
|
||||||
@ -166,6 +166,7 @@ async function sendCookies() {
|
|||||||
cookieLines.push(buildCookieLine(cookie));
|
cookieLines.push(buildCookieLine(cookie));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
console.log(cookieLines.length);
|
||||||
console.log(cookieLines.join("\n"));
|
console.log(cookieLines.join("\n"));
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user