From 8eea6abeda9d8eda3adfc5e80d75aad9ff69aaef Mon Sep 17 00:00:00 2001
From: alf45tar <35426671+alf45tar@users.noreply.github.com>
Date: Sat, 5 Oct 2024 15:06:57 +0200
Subject: [PATCH] Update installer2.html
---
installer2.html | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/installer2.html b/installer2.html
index aaf7d11..5dee42c 100644
--- a/installer2.html
+++ b/installer2.html
@@ -180,7 +180,7 @@
PedalinoMiniā¢ Installer
for (const tag of tags) {
const version = tag.ref.split('/').pop().replace('v', '');
- const url = `https://raw.githubusercontent.com/${GITHUB_REPO}/${tag.ref.split('/').pop()}/firmware/${boardKey}/${boardKey}-${version}.json`;
+ const url = `https://raw.githubusercontent.com/${GITHUB_REPO}/${version}/firmware/${boardKey}/${boardKey}-${version}.json`;
const exists = await checkFileExists(url);
if (exists) {
@@ -194,7 +194,7 @@ PedalinoMiniā¢ Installer
// Populate the version dropdown
versions.forEach(version => {
const option = document.createElement('option');
- option.value = version;
+ option.value = `https://raw.githubusercontent.com/${GITHUB_REPO}/${version}/firmware/${boardKey}/${boardKey}-${version}.json`;
option.textContent = version;
versionSelect.appendChild(option);
});