Skip to content

Commit

Permalink
Merge pull request #14 from tucked/redirect-to-txt
Browse files Browse the repository at this point in the history
Redirect to a raw txt retrieval from the Web UI
  • Loading branch information
tucked authored Feb 15, 2024
2 parents 5abdbe7 + cc2bdc6 commit 82dc66a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pbnh/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
var xhttp = new XMLHttpRequest();
xhttp.onreadystatechange = function() {
if (xhttp.readyState == 4 && xhttp.status == 201 && xhttp.responseText.length) {
window.location.href = JSON.parse(xhttp.responseText).link;
window.location.href = JSON.parse(xhttp.responseText).link + ".txt";
}
};
var myForm = new FormData();
Expand Down

0 comments on commit 82dc66a

Please sign in to comment.