summaryrefslogtreecommitdiff
path: root/static/releases.js
diff options
context:
space:
mode:
authorDaniel Micay <danielmicay@gmail.com>2019-05-10 17:16:37 -0400
committerDaniel Micay <danielmicay@gmail.com>2019-05-10 17:16:37 -0400
commit2ba653ca55bcafc1327cda3df8a940d80eb99e1f (patch)
tree64320c803e0e4025478b7a6580968217df142e4d /static/releases.js
parentd72d8e83aa0d0abc228417dc9fa77c5bcbf724c9 (diff)
update releases links instead of replacing
Diffstat (limited to 'static/releases.js')
-rw-r--r--static/releases.js10
1 files changed, 6 insertions, 4 deletions
diff --git a/static/releases.js b/static/releases.js
index 06c9a5a2..0ceec4fa 100644
--- a/static/releases.js
+++ b/static/releases.js
@@ -42,10 +42,12 @@ for (const channel of channels) {
release.replaceChild(version, release.getElementsByTagName("p")[0]);
const links = release.getElementsByTagName("a");
-
- release.replaceChild(createLink(factoryUrl, factoryFilename), links[2]);
- release.replaceChild(createLink(factoryUrl + ".sig", factoryFilename + ".sig"), links[3]);
- release.replaceChild(createLink(updateUrl, updateFilename), links[4]);
+ links[2].innerText = factoryFilename;
+ links[2].setAttribute("href", factoryUrl);
+ links[3].innerText = factoryFilename + ".sig";
+ links[3].setAttribute("href", factoryUrl + ".sig");
+ links[4].innerText = updateFilename;
+ links[4].setAttribute("href", updateUrl);
});
}
}