absolute base path

This commit is contained in:
Reece
2025-12-10 13:54:21 +00:00
parent 52c2dcfe05
commit 1eed0292b6
@@ -46,6 +46,7 @@ import { PrintAPIBridge } from '@app/components/viewer/PrintAPIBridge';
import { isPdfFile } from '@app/utils/fileUtils';
import { useTranslation } from 'react-i18next';
import { LinkLayer } from '@app/components/viewer/LinkLayer';
import { absoluteWithBasePath } from '@app/constants/app';
interface LocalEmbedPDFProps {
file?: File | Blob;
@@ -169,7 +170,7 @@ export function LocalEmbedPDF({ file, url, enableAnnotations = false, onSignatur
// Initialize the engine with the React hook - use local WASM for offline support
const { engine, isLoading, error } = usePdfiumEngine({
wasmUrl: '/pdfium/pdfium.wasm',
wasmUrl: absoluteWithBasePath('/pdfium/pdfium.wasm'),
});