From 58e3b4470683e20cc8dc7dcac22f4033eebcb114 Mon Sep 17 00:00:00 2001 From: salman Date: Thu, 12 Jan 2023 10:19:56 +0100 Subject: [PATCH] Fix bug with html link not being updated. --- TrimSPweb.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/TrimSPweb.js b/TrimSPweb.js index 2edba8b..9fdf745 100644 --- a/TrimSPweb.js +++ b/TrimSPweb.js @@ -29,12 +29,13 @@ function writeAsciiFile(filename,content) { if (!d) { d = document.createElement("div"); d.id = "linkDiv"; - let htmlLink = "Download files: "; - htmlLink += prefix[2] + ".tgz"; - d.innerHTML = htmlLink; document.body.appendChild(d); } + let htmlLink = "Download files: "; + htmlLink += prefix[2] + ".tgz"; + d.innerHTML = htmlLink; + return(1); }