settings: make version hash look better

This commit is contained in:
Ducko 2023-04-01 21:46:04 +01:00
parent cc0cae97f9
commit ac0ad4d48a

View file

@ -32,9 +32,13 @@ setInterval(() => {
const oaVersion = host.cloneNode(true); const oaVersion = host.cloneNode(true);
oaVersion.id = 'openasar-ver'; oaVersion.id = 'openasar-ver';
oaVersion.textContent = 'OpenAsar <channel> <hash>'; oaVersion.textContent = 'OpenAsar <channel> ';
oaVersion.onclick = () => DiscordNative.ipc.send('DISCORD_UPDATED_QUOTES', 'o'); oaVersion.onclick = () => DiscordNative.ipc.send('DISCORD_UPDATED_QUOTES', 'o');
const oaHash = document.querySelector('[class*="versionHash-"]').cloneNode(true);
oaHash.textContent = '(<hash>)';
oaVersion.appendChild(oaHash);
host.insertAdjacentElement('afterend', oaVersion); host.insertAdjacentElement('afterend', oaVersion);
const advanced = document.querySelector('[class*="socialLinks-"]').parentElement.querySelectorAll('[class*="separator-')[2].previousElementSibling; const advanced = document.querySelector('[class*="socialLinks-"]').parentElement.querySelectorAll('[class*="separator-')[2].previousElementSibling;