From 7aac33db54d924898a3c93240199b803b9e550b9 Mon Sep 17 00:00:00 2001 From: victorjourne Date: Thu, 15 Feb 2024 12:38:00 +0100 Subject: [PATCH] Format ResultPage --- frontend/src/routes/ResultPage.svelte | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/frontend/src/routes/ResultPage.svelte b/frontend/src/routes/ResultPage.svelte index a67c82b..d985c3c 100644 --- a/frontend/src/routes/ResultPage.svelte +++ b/frontend/src/routes/ResultPage.svelte @@ -14,12 +14,12 @@ let pdfjsLib, pdfjsWorker; const initializePdfJs = () => { - pdfjsLib = window.pdfjsLib; - } + pdfjsLib = window.pdfjsLib; + }; const initializePdfWorker = () => { pdfjsWorker = window.pdfjsWorker; pdfjsLib.GlobalWorkerOptions.workerSrc = pdfjsWorker; - } + }; // Install with npm, pb with terser when minify... // import * as pdfjsLib from "pdfjs-dist/build/pdf"; @@ -125,12 +125,16 @@ {filename} - - - + + - {#if meta != undefined && $itemJson != undefined && filename != undefined}