Load assets from relative path (#1588)
This commit is contained in:
@@ -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;
|
||||
}, [])
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user