diff options
| author | Daniel Micay <danielmicay@gmail.com> | 2019-05-10 17:16:37 -0400 |
|---|---|---|
| committer | Daniel Micay <danielmicay@gmail.com> | 2019-05-10 17:16:37 -0400 |
| commit | 2ba653ca55bcafc1327cda3df8a940d80eb99e1f (patch) | |
| tree | 64320c803e0e4025478b7a6580968217df142e4d /static | |
| parent | d72d8e83aa0d0abc228417dc9fa77c5bcbf724c9 (diff) | |
update releases links instead of replacing
Diffstat (limited to 'static')
| -rw-r--r-- | static/releases.html | 2 | ||||
| -rw-r--r-- | static/releases.js | 10 |
2 files changed, 7 insertions, 5 deletions
diff --git a/static/releases.html b/static/releases.html index 1e714659..bff6bdba 100644 --- a/static/releases.html +++ b/static/releases.html @@ -322,6 +322,6 @@ <a href="https://github.com/GrapheneOS">GitHub</a> </div> </footer> - <script src="/releases.js?6"></script> + <script src="/releases.js?7"></script> </body> </html> 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); }); } } |
