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; }