Tray: Hyperlink Version & Commit

This commit is contained in:
thororen1234 2026-01-30 15:53:02 -05:00
parent 480d4037a8
commit fb8c81a8cf
No known key found for this signature in database
2 changed files with 20 additions and 4 deletions

View file

@ -108,9 +108,15 @@
<div class="header-text">
<div class="header-top">
<h1>Equicord</h1>
<span class="version">v{{VERSION}} ({{GIT_HASH}})</span>
<span class="version">
<a href="https://github.com/Equicord/Equicord/releases/tag/v{{VERSION}}">
v{{VERSION}}
</a>
(<a href="https://github.com/Equicord/Equicord/commit/{{GIT_HASH}}">{{GIT_HASH}}</a>)
</span>
</div>
<p class="tagline">An enhanced version of Vencord. A fork that offers a wider selection of plugins from the community.</p>
<p class="tagline">An enhanced version of Vencord. A fork that offers a wider selection of plugins from the
community.</p>
</div>
</header>
@ -177,4 +183,12 @@
}
walk(document.body);
</script>
document.addEventListener("click", (e) => {
const a = e.target.closest("a[href]");
if (!a) return;
e.preventDefault();
window.open(a.href);
});
</script>

View file

@ -71,7 +71,9 @@ function openAboutWindow() {
width
});
const aboutParams = aboutHtml.replace("{{VERSION}}", VERSION).replace("{{GIT_HASH}}", gitHashShort);
const aboutParams = aboutHtml
.replaceAll("{{VERSION}}", VERSION)
.replaceAll("{{GIT_HASH}}", gitHashShort);
const base64Html = Buffer.from(aboutParams).toString("base64");
aboutWindow.loadURL(`data:text/html;base64,${base64Html}`);
aboutWindow.on("closed", () => {