Skip to content

Commit

Permalink
Fix dataset name for download
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanKingston authored Oct 31, 2024
1 parent 7301ffa commit 306739b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions features/download/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<p>Download via iframe</p>
<ul>
<li><a href="#" class="init-iframe-download" data-type="json" >Init iframe JSON load</a>
<li><a href="#" class="init-iframe-download" data-type="json" data-suggestedFilename="./../path/path/testComplex.json.">Init iframe JSON load, complex suggested path</a>
<li><a href="#" class="init-iframe-download" data-type="json" data-suggestedfilename="./../path/path/testComplex.json.">Init iframe JSON load, complex suggested path</a>
<li><a href="#" class="init-iframe-download" data-type="pdf" >Init iframe PDF load</a>
</ul>
<div id="iframe-container"></div>
Expand All @@ -35,9 +35,9 @@
const iframe = document.createElement('iframe');
iframe.style.display = 'none';
iframe.src = `./file/${link.dataset.type}`;
if (link.dataset.suggestedFilename) {
if (link.dataset.suggestedfilename) {
const params = new URLSearchParams({
suggestedFilename: link.dataset.suggestedFilename
suggestedFilename: link.dataset.suggestedfilename
});
iframe.src += '?' + params.toString()
}
Expand Down

0 comments on commit 306739b

Please sign in to comment.