Skip to content

Commit 1e57b71

Browse files
committed
doc: update example in README.md
1 parent 0c4c405 commit 1e57b71

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
[![Build Status](https://travis-ci.com/Submitty/pdf-annotate.js.svg?branch=master)](https://travis-ci.com/Submitty/pdf-annotate.js)
44
[![codecov](https://codecov.io/gh/Submitty/pdf-annotate.js/branch/master/graph/badge.svg)](https://codecov.io/gh/Submitty/pdf-annotate.js)
55

6-
Annotation layer for [PDF.js](https://github.com/mozilla/pdf.js).
6+
Annotation layer for [PDF.js](https://github.com/mozilla/pdf.js).
77

88
Combined fork of archived [instructure/pdf-annotate.js](https://github.com/instructure/pdf-annotate.js/) and deleted DynamicEnvironmentSystems/pdf-annotate.js. Under active development for usage within [Submitty](https://github.com/Submitty/Submitty).
99

@@ -35,7 +35,7 @@ const RENDER_OPTIONS = {
3535
pdfjsLib.workerSrc = 'pdf.worker.js';
3636
PDFJSAnnotate.setStoreAdapter(MyStoreAdapter);
3737

38-
pdfjsLib.getDocument(RENDER_OPTIONS.documentId).then((pdf) => {
38+
pdfjsLib.getDocument(RENDER_OPTIONS.documentId).promise.then((pdf) => {
3939
RENDER_OPTIONS.pdfDocument = pdf;
4040
VIEWER.appendChild(UI.createPage(1));
4141
UI.renderPage(1, RENDER_OPTIONS);
@@ -68,4 +68,3 @@ $ npm test
6868
# lint the code
6969
$ npm run lint
7070
```
71-

0 commit comments

Comments
 (0)