1
0
Fork 0

use correct url

This commit is contained in:
Malte Jürgens 2023-07-06 11:54:34 +02:00
parent 889ca49117
commit 1c8f039586
Signed by: maltejur
GPG key ID: D29FBD5F93C0CFC3
2 changed files with 1 additions and 2 deletions

View file

@ -1,6 +1,5 @@
{ {
"baseUrl": "https://assets.hsarch.polar.onl/", "baseUrl": "https://assets.hsarch.polar.onl/",
"downloadUrl": "https://assets.hsarch.polar.onl/",
"hertzschlag": [ "hertzschlag": [
{ {
"Ausgabe": "1", "Ausgabe": "1",

View file

@ -6,7 +6,7 @@ export default function Pdf(params: Params, type = "hertzschlag") {
ret.classList.add("iframe"); ret.classList.add("iframe");
const iframe = document.createElement("iframe"); const iframe = document.createElement("iframe");
iframe.src = `https://mozilla.github.io/pdf.js/web/viewer.html?file=${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?view`;
ret.appendChild(iframe); ret.appendChild(iframe);
return ret; return ret;