Skip to content

Commit 550c547

Browse files
committed
refactor: 更新 worker 路径
1 parent 2010373 commit 550c547

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/components/BootstrapBlazor.PdfReader/PdfReader.razor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import Data from '../BootstrapBlazor/modules/data.js';
55
import EventHandler from '../BootstrapBlazor/modules/event-handler.js';
66

77
if (pdfjsLib != null) {
8-
pdfjsLib.GlobalWorkerOptions.workerSrc = './pdf.worker.min.mjs';
8+
pdfjsLib.GlobalWorkerOptions.workerSrc = '/_content/BootstrapBlazor.PdfReader/lib/pdf.worker.min.mjs';
99
}
1010

1111
export async function init(id, invoke, options) {

0 commit comments

Comments
 (0)