From fd35c0dc2098f5160abf2ef2650079147a6b0df7 Mon Sep 17 00:00:00 2001 From: Mike Lang Date: Fri, 8 Nov 2019 22:23:49 -0800 Subject: [PATCH] thrimbletrimmer: Have a download link instead of a iframe The iframe doesn't always work, this is more reliable. --- thrimbletrimmer/index.html | 2 +- thrimbletrimmer/scripts/IO.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/thrimbletrimmer/index.html b/thrimbletrimmer/index.html index bc29e04..a450cdf 100644 --- a/thrimbletrimmer/index.html +++ b/thrimbletrimmer/index.html @@ -109,6 +109,7 @@ + - diff --git a/thrimbletrimmer/scripts/IO.js b/thrimbletrimmer/scripts/IO.js index aa42e57..d134095 100644 --- a/thrimbletrimmer/scripts/IO.js +++ b/thrimbletrimmer/scripts/IO.js @@ -300,7 +300,8 @@ thrimbletrimmerDownload = function(isEditor) { allow_holes: (isEditor) ? String(document.getElementById('AllowHoles').checked) : "true", }); console.log(targetURL); - document.getElementById('outputFile').src = targetURL; + document.getElementById('DownloadLink').href = targetURL; + document.getElementById('DownloadLink').style.display = ""; }; thrimbletrimmerManualLink = function() {