updated github references to gitea ones

This commit is contained in:
2026-07-30 14:26:26 +02:00
parent af18649e64
commit a0dd4cc979
@@ -38,7 +38,7 @@ class DownloadScript extends HTMLElement {
} }
try { try {
const response = await fetch('https://api.github.com/repos/dutchie031/Spearhead/releases/latest'); const response = await fetch('https://git.dutchie031.com/api/v1/repos/Spearhead/spearhead/releases/latest');
const data = await response.json(); const data = await response.json();
// Cache the data // Cache the data
@@ -66,7 +66,7 @@ class DownloadScript extends HTMLElement {
var version = "?"; var version = "?";
var timestamp = "?"; var timestamp = "?";
var size = "?"; var size = "?";
var href = "https://github.com/dutchie031/Spearhead/releases" var href = "https://git.dutchie031.com/Spearhead/spearhead/releases"
const latestRelease = await this.fetchLatestRelease(); const latestRelease = await this.fetchLatestRelease();
if (latestRelease) { if (latestRelease) {
@@ -105,7 +105,7 @@ class DownloadScript extends HTMLElement {
<p> <p>
<span class="version-text">${version}</span> (${timestamp}) <br> <span class="version-text">${version}</span> (${timestamp}) <br>
<a style="text-decoration: underline;" target="_blank" href="${href}">Download</a> (${size}) <br> <a style="text-decoration: underline;" target="_blank" href="${href}">Download</a> (${size}) <br>
<a style="text-decoration: underline;" target="_blank" href="https://github.com/dutchie031/Spearhead/releases">See All Versions here</a> <a style="text-decoration: underline;" target="_blank" href="https://git.dutchie031.com/Spearhead/spearhead/releases">See All Versions here</a>
</p> </p>
</div> </div>