Skip to content

Commit

Permalink
Merge pull request #83 from fufler/pass-event-bus-instance-to-pdfpage…
Browse files Browse the repository at this point in the history
…view

fix: Pass required EventBus instance to PDFPageView
  • Loading branch information
arkokoley authored Dec 26, 2020
2 parents 4cb379c + 9eb96aa commit 9451226
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 9451226

Please sign in to comment.