We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dfbb5c1 commit 81c5d8aCopy full SHA for 81c5d8a
1 file changed
src/components/BootstrapBlazor.EmbedPDF/EmbedPDF.razor.js
@@ -8,6 +8,7 @@ export function init(id, invoke) {
8
9
const target = el.querySelector('.pdf-viewer');
10
const src = './samples/sample.pdf';
11
+ const wasmUrl = `${location.origin}/_content/BootstrapBlazor.EmbedPDF/pdfium.wasm`;
12
EmbedPDF.init({
13
type: 'container',
14
target: el,
@@ -16,6 +17,7 @@ export function init(id, invoke) {
16
17
tabBar: 'always',
18
theme: {
19
preference: 'system'
- }
20
+ },
21
+ wasmUrl
22
});
23
}
0 commit comments