Skip to content

Commit

Permalink
refactor: use getResolvedPDFJSInstance
Browse files Browse the repository at this point in the history
  • Loading branch information
johannschopplich committed Aug 12, 2023
1 parent b01555e commit a6c1ee8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type * as PDFJS from 'pdfjs-dist'
let instance: typeof PDFJS | undefined

export async function getDocumentProxy(data: ArrayBuffer) {
const { getDocument } = instance!
const { getDocument } = getResolvedPDFJSInstance()
const pdf = await getDocument({
data,
useWorkerFetch: false,
Expand Down

0 comments on commit a6c1ee8

Please # to comment.