File tree 3 files changed +3
-3
lines changed
3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ const RENDER_OPTIONS = {
31
31
rotate: 0
32
32
};
33
33
34
- pdfjsLib .workerSrc = ' pdf.worker.js' ;
34
+ pdfjsLib .GlobalWorkerOptions . workerSrc = ' pdf.worker.js' ;
35
35
PDFJSAnnotate .setStoreAdapter (PDFJSAnnotate .LocalStoreAdapter );
36
36
37
37
pdfjsLib .getDocument (RENDER_OPTIONS .documentId ).promise .then ((pdf ) => {
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import annotations from './annotations';
3
3
4
4
const DOCUMENT_ID = 'PDFJSAnnotate.pdf' ;
5
5
6
- pdfjsViewer . workerSrc = '../shared/pdf.worker.js' ;
6
+ pdfjsViewer . GlobalWorkerOptions . workerSrc = '../shared/pdf.worker.js' ;
7
7
8
8
PDFJSAnnotate . StoreAdapter . getAnnotations = ( documentId , pageNumber ) => {
9
9
return new Promise ( ( resolve , reject ) => {
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ let RENDER_OPTIONS = {
21
21
} ;
22
22
23
23
PDFJSAnnotate . setStoreAdapter ( new PDFJSAnnotate . LocalStoreAdapter ( ) ) ;
24
- pdfjsLib . workerSrc = './shared/pdf.worker.js' ;
24
+ pdfjsLib . GlobalWorkerOptions . workerSrc = './shared/pdf.worker.js' ;
25
25
26
26
// Render stuff
27
27
let NUM_PAGES = 0 ;
You can’t perform that action at this time.
0 commit comments