From fa0fecffcf13dc3a61d081a832d83d17c81ad5fe Mon Sep 17 00:00:00 2001 From: simon Date: Mon, 20 Jun 2022 18:37:02 +0700 Subject: [PATCH] fix header building newline --- extension/background.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/extension/background.js b/extension/background.js index 807ebad..f9e1513 100644 --- a/extension/background.js +++ b/extension/background.js @@ -151,9 +151,9 @@ async function sendCookies() { let cookieStores = await browserType.cookies.getAllCookieStores(); var cookieLines = [ - "# Netscape HTTP Cookie File\n", - "# https://curl.haxx.se/rfc/cookie_spec.html\n", - "# This is a generated file! Do not edit.\n\n" + "# Netscape HTTP Cookie File", + "# https://curl.haxx.se/rfc/cookie_spec.html", + "# This is a generated file! Do not edit.\n" ]; for (let i = 0; i < cookieStores.length; i++) { const cookieStore = cookieStores[i]; @@ -166,6 +166,7 @@ async function sendCookies() { cookieLines.push(buildCookieLine(cookie)); } } + console.log(cookieLines.length); console.log(cookieLines.join("\n")); }