summaryrefslogtreecommitdiff
path: root/static
diff options
context:
space:
mode:
authorDaniel Micay <daniel.micay@grapheneos.org>2025-03-11 11:35:33 -0400
committerDaniel Micay <daniel.micay@grapheneos.org>2025-03-11 11:35:33 -0400
commit4fad94b05622964d24a7574fc62e3a58552304f5 (patch)
tree6d16cff734dd0d7a365c29d554f9eef91b7c0046 /static
parente99e4d6d95658b588126a9794d92936180e6bfc0 (diff)
fix release listing updates for legacy devices
This will also be needed for experimental support for new devices so it's worth fixing it.
Diffstat (limited to 'static')
-rw-r--r--static/js/releases.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/static/js/releases.js b/static/js/releases.js
index 24473af7..026cab33 100644
--- a/static/js/releases.js
+++ b/static/js/releases.js
@@ -27,10 +27,12 @@ async function updateReleases() {
const updateUrl = baseUrl + updateFilename;
const release = document.getElementById(`${device}-${channel}`);
- const links = release.getElementsByTagName("a");
+ const links = release.querySelectorAll("a, span");
links[0].textContent = metadata[0];
- links[0].setAttribute("href", "#" + metadata[0]);
+ if (links[0].nodeName == "A") {
+ links[0].setAttribute("href", "#" + metadata[0]);
+ }
links[1].setAttribute("href", factoryUrl);
links[2].setAttribute("href", factoryUrl + ".sig");
links[3].setAttribute("href", updateUrl);