fix: bilibili cache issue and close puppeteer after getting cookie (#15282)

This commit is contained in:
Raven-tu
2024-04-18 09:39:19 +00:00
committed by GitHub
parent 5c3711cbcc
commit d21c4dd4ef
+1 -1
View File
@@ -27,7 +27,7 @@ const getCookie = () => {
await page.goto('https://space.bilibili.com/1/dynamic');
const cookieString = await waitForRequest;
logger.debug(`Got bilibili cookie: ${cookieString}`);
await browser.close();
return cookieString;
});
};