[MainWindow] Make version injection more generic

This commit is contained in:
Ducko 2022-05-04 22:33:58 +01:00
parent ec4c8921ae
commit 029123e0ac
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ const themesync = async () => {
// Settings info version injection
setInterval(() => {
const host = [...document.querySelectorAll('[class^="socialLinks-"] + [class^="info-"] [class^="colorMuted-"]')].find(x => x.textContent.startsWith('Host '));
const host = [...document.querySelectorAll('[class*="info-"] [class*="line-"]')].find(x => x.textContent.startsWith('Host '));
if (!host || document.querySelector('#openasar-ver')) return;
const el = document.createElement('span');