use pdf.js
This commit is contained in:
parent
06b4611dcc
commit
5f9e70ee95
1 changed files with 1 additions and 1 deletions
|
|
@ -6,7 +6,7 @@ export default function Pdf(params: Params, type = "hertzschlag") {
|
|||
ret.classList.add("iframe");
|
||||
|
||||
const iframe = document.createElement("iframe");
|
||||
iframe.src = `${json.baseUrl}${type}/pdf/compressed/${params.id}.pdf`;
|
||||
iframe.src = `https://mozilla.github.io/pdf.js/web/viewer.html?file=${json.baseUrl}${type}/pdf/compressed/${params.id}.pdf`;
|
||||
|
||||
ret.appendChild(iframe);
|
||||
return ret;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue