Make block not empty
This commit is contained in:
parent
6f5ddf1651
commit
848e239813
@ -48,7 +48,9 @@ export function importCookieHeader(url, cookieHeader) {
|
|||||||
let existingCookie;
|
let existingCookie;
|
||||||
try {
|
try {
|
||||||
existingCookie = cookieJar.getCookiesSync(url).find(existing => existing.key === key);
|
existingCookie = cookieJar.getCookiesSync(url).find(existing => existing.key === key);
|
||||||
} catch {}
|
} catch (e) {
|
||||||
|
console.debug(`Failed to get cookies for ${url}: ${e}`)
|
||||||
|
}
|
||||||
|
|
||||||
if (existingCookie) {
|
if (existingCookie) {
|
||||||
existingCookie.value = value;
|
existingCookie.value = value;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user