From 46d39f4c0d3395503f102cbd9992b6ae17def396 Mon Sep 17 00:00:00 2001 From: jonalan Date: Wed, 7 Apr 2021 13:12:51 -0300 Subject: [PATCH] fix: statusFind deviceNotConnected --- src/controllers/initializer.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controllers/initializer.ts b/src/controllers/initializer.ts index 39873bfdf..118cb517c 100644 --- a/src/controllers/initializer.ts +++ b/src/controllers/initializer.ts @@ -279,7 +279,7 @@ export async function create( client.onStateChange((state) => { if (state === SocketState.PAIRING) { const device = page.evaluate(() => { - if (document.querySelectorAll('#startup')) { + if (document.querySelectorAll('#startup').length) { return true; } else { return false;