This commit is contained in:
Kerwin Bryant committed 2025-01-10 14:05:34 +00:00
1 parent 62ecf34b99
commit d4a99e53c8
6 files changed
+46 -31

No files matched your search

+5 -1
View File
@@ -1,7 +1,11 @@
import {htmlEscape} from 'escape-goat';
export async function initPdfViewer() {
const els = document.querySelectorAll('.pdf-content');
initTargetPdfViewer(document);
}
export async function initTargetPdfViewer(target: ParentNode) {
const els = target.querySelectorAll('.pdf-content');
if (!els.length) return;
const pdfobject = await import(/* webpackChunkName: "pdfobject" */'pdfobject');