From 2b99e49aa20e22fbdadf64937024088069aa7e53 Mon Sep 17 00:00:00 2001 From: Jibon Costa Date: Sat, 28 Mar 2020 00:46:29 +0600 Subject: fix --- liveJoin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'liveJoin.js') diff --git a/liveJoin.js b/liveJoin.js index a768f52..d0dd2b5 100644 --- a/liveJoin.js +++ b/liveJoin.js @@ -67,7 +67,7 @@ async function main() { window.postMessage({type: 'REC_START'}, '*') }) - if(duration){ + if(duration > 0){ await page.waitFor((duration * 1000)) }else{ await page.waitForSelector('[class^=modal] > [class^=content] > button[description="Logs you out of the meeting"]', { -- cgit v1.3.1