Skip to content

Commit 81c5d8a

Browse files
committed
chore: 更新 wasmUrl 配置
1 parent dfbb5c1 commit 81c5d8a

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/components/BootstrapBlazor.EmbedPDF/EmbedPDF.razor.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ export function init(id, invoke) {
88

99
const target = el.querySelector('.pdf-viewer');
1010
const src = './samples/sample.pdf';
11+
const wasmUrl = `${location.origin}/_content/BootstrapBlazor.EmbedPDF/pdfium.wasm`;
1112
EmbedPDF.init({
1213
type: 'container',
1314
target: el,
@@ -16,6 +17,7 @@ export function init(id, invoke) {
1617
tabBar: 'always',
1718
theme: {
1819
preference: 'system'
19-
}
20+
},
21+
wasmUrl
2022
});
2123
}

0 commit comments

Comments
 (0)