From ac0ad4d48a1a198c0a8a784da973b96684b336a7 Mon Sep 17 00:00:00 2001 From: CanadaHonk Date: Sat, 1 Apr 2023 21:46:04 +0100 Subject: [PATCH] settings: make version hash look better --- src/mainWindow.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/mainWindow.js b/src/mainWindow.js index 922796c..48b3982 100644 --- a/src/mainWindow.js +++ b/src/mainWindow.js @@ -32,9 +32,13 @@ setInterval(() => { const oaVersion = host.cloneNode(true); oaVersion.id = 'openasar-ver'; - oaVersion.textContent = 'OpenAsar '; + oaVersion.textContent = 'OpenAsar '; oaVersion.onclick = () => DiscordNative.ipc.send('DISCORD_UPDATED_QUOTES', 'o'); + const oaHash = document.querySelector('[class*="versionHash-"]').cloneNode(true); + oaHash.textContent = '()'; + oaVersion.appendChild(oaHash); + host.insertAdjacentElement('afterend', oaVersion); const advanced = document.querySelector('[class*="socialLinks-"]').parentElement.querySelectorAll('[class*="separator-')[2].previousElementSibling;