use pdf.js
This commit is contained in:
parent
2d7961bc25
commit
0f6ae74ae8
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