Make block not empty

This commit is contained in:
James Waters 2023-08-11 23:32:36 +01:00
parent 6f5ddf1651
commit 848e239813

View File

@ -48,7 +48,9 @@ export function importCookieHeader(url, cookieHeader) {
let existingCookie;
try {
existingCookie = cookieJar.getCookiesSync(url).find(existing => existing.key === key);
} catch {}
} catch (e) {
console.debug(`Failed to get cookies for ${url}: ${e}`)
}
if (existingCookie) {
existingCookie.value = value;