Skip to content

Commit 3fbbb59

Browse files
committed
[Documentation] Fix setStoreAdapter line in example in README
Signed-off-by: Matthew Peveler <[email protected]>
1 parent 6c61a03 commit 3fbbb59

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ const RENDER_OPTIONS = {
3939
};
4040

4141
pdfjsLib.GlobalWorkerOptions.workerSrc = 'pdf.worker.js';
42-
PDFJSAnnotate.setStoreAdapter(PDFJSAnnotate.LocalStoreAdapter);
42+
PDFJSAnnotate.setStoreAdapter(new PDFJSAnnotate.LocalStoreAdapter());
4343

4444
pdfjsLib.getDocument(RENDER_OPTIONS.documentId).promise.then((pdf) => {
4545
RENDER_OPTIONS.pdfDocument = pdf;

0 commit comments

Comments
 (0)