Skip to content

Commit

Permalink
fix: Pass required EventBus instance to PDFPageView
Browse files Browse the repository at this point in the history
  • Loading branch information
fufler committed Dec 24, 2020
1 parent 4cb379c commit 9eb96aa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Pdfvuer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
DefaultAnnotationLayerFactory,
DefaultTextLayerFactory,
PDFLinkService,
PDFPageView
PDFPageView,
EventBus
} from 'pdfjs-dist/web/pdf_viewer.js';
import resizeSensor from 'vue-resize-sensor'
Expand Down Expand Up @@ -173,6 +174,7 @@
}),
textLayerFactory: textLayer,
annotationLayerFactory: annotationLayer,
eventBus: new EventBus()
});
self.loading = false;
self.$emit('loading', false);
Expand Down

0 comments on commit 9eb96aa

Please sign in to comment.