fix: await keepAlive
I forgot...
This commit is contained in:
@ -26,7 +26,7 @@ async function spawn(context: BrowserContext, targetUrl: string) {
|
||||
await targetInput.press("Enter");
|
||||
// Keep-alive the page open for 5 minutes then refresh
|
||||
if (targetUrl.startsWith("https://www.twitch.tv/")) {
|
||||
twitch.keepAlive(page, spawnId);
|
||||
await twitch.keepAlive(page, spawnId);
|
||||
} else {
|
||||
logger.warn(`[${spawnId}] Unsupported URL: ${targetUrl}`);
|
||||
logger.warn(`[${spawnId}] Will try to keep alive, but no guarantees`);
|
||||
|
||||
Reference in New Issue
Block a user