Skip to content

Commit

Permalink
korriger pdf worker url
Browse files Browse the repository at this point in the history
  • Loading branch information
johatr committed Feb 13, 2024
1 parent 1c185ab commit 6f3839a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/moduler/journalforing/JournalforingPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import useAppDispatch from '../../felles-komponenter/hooks/useAppDispatch';
import { selectVistOppfolgingsperiode } from '../aktivitet/aktivitetlisteSelector';
import { Document, pdfjs } from 'react-pdf';

const src = new URL('pdf.worker.js', import.meta.url);
const src = new URL('/pdf.worker.js', import.meta.url);
pdfjs.GlobalWorkerOptions.workerSrc = src.toString();

const createBlob = (pdf: string) => {
Expand Down

0 comments on commit 6f3839a

Please sign in to comment.