misc: fix compatibility with recent pdf.js versions
This commit is contained in:
parent
3b69af98cf
commit
a8b33ac709
|
@ -1,3 +1,7 @@
|
|||
window.addEventListener('message', function(event) {
|
||||
if (typeof(PDFViewerApplication) !== 'undefined') {
|
||||
PDFViewerApplication.open(event.data);
|
||||
} else {
|
||||
PDFView.open(event.data);
|
||||
}
|
||||
}, false);
|
||||
|
|
Loading…
Reference in New Issue