Skip to content

Commit

Permalink
enhance example
Browse files Browse the repository at this point in the history
  • Loading branch information
dealfonso committed Jan 24, 2023
1 parent aa8ee23 commit 3a63c1e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion examples/example.html
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,10 @@
</div>
</body>
<script>
let PDFFILE="test.pdf";
const queryString = window.location.search;
const urlParams = new URLSearchParams(queryString);
const PDFFILE = urlParams.get('doc')??"test.pdf";

function dataURItoBinArray(data) {
// taken from: https://stackoverflow.com/a/11954337/14699733
var binary = atob(data);
Expand Down

0 comments on commit 3a63c1e

Please sign in to comment.