From 641af3be13657f459c7cdc562881f9b59320f8b7 Mon Sep 17 00:00:00 2001 From: Baba <59146844+Babakinha@users.noreply.github.com> Date: Thu, 16 Nov 2023 15:09:46 -0300 Subject: [PATCH] fix: settings and info not appearing (#507) Query the right element to get the info div --- src/preload/preload.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/preload/preload.ts b/src/preload/preload.ts index c46d440..685e367 100644 --- a/src/preload/preload.ts +++ b/src/preload/preload.ts @@ -73,10 +73,7 @@ sleep(5000).then(async () => { // Settings info version injection setInterval(() => { - // @ts-expect-error - const host = [...document.querySelectorAll('[class*="sidebar"] [class*="info"] [class*="line"]')].find((x) => - x.textContent.startsWith("Host ") - ); + const host = document.querySelector('[class*="sidebar"] [class*="info"]'); if (!host || host.querySelector("#ac-ver")) { return; }