use correct url
This commit is contained in:
parent
889ca49117
commit
1c8f039586
2 changed files with 1 additions and 2 deletions
|
|
@ -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",
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue