mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-10 13:00:06 +02:00
fix
This commit is contained in:
1 parent
62ecf34b99
commit
d4a99e53c8
6 files changed
+46
-31
No files matched your search
@@ -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');
|
||||
|
||||
Reference in new issue
Block a user