updated github references to gitea ones
This commit is contained in:
@@ -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>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user