mirror of
https://github.com/RGBCube/cinny
synced 2025-07-31 08:57:46 +00:00
Load assets from relative path (#1588)
This commit is contained in:
parent
20db27fa7e
commit
ef2733df48
2 changed files with 11 additions and 11 deletions
|
@ -7,7 +7,7 @@ export const usePdfJSLoader = () =>
|
|||
useAsyncCallback(
|
||||
useCallback(async () => {
|
||||
const pdf = await import('pdfjs-dist');
|
||||
pdf.GlobalWorkerOptions.workerSrc = '/pdf.worker.min.js';
|
||||
pdf.GlobalWorkerOptions.workerSrc = 'pdf.worker.min.js';
|
||||
return pdf;
|
||||
}, [])
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue