[MainWindow] Make version injection more generic
This commit is contained in:
parent
ec4c8921ae
commit
029123e0ac
|
@ -20,7 +20,7 @@ const themesync = async () => {
|
||||||
|
|
||||||
// Settings info version injection
|
// Settings info version injection
|
||||||
setInterval(() => {
|
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;
|
if (!host || document.querySelector('#openasar-ver')) return;
|
||||||
|
|
||||||
const el = document.createElement('span');
|
const el = document.createElement('span');
|
||||||
|
|
Loading…
Reference in New Issue