mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 22:58:07 +02:00
Add code to nulti page viewer to works with the extension
This commit is contained in:
parent
f1a8a98757
commit
6f2d3238cd
1 changed files with 6 additions and 0 deletions
|
@ -249,6 +249,8 @@ var PDFViewer = {
|
|||
openURL: function(url) {
|
||||
PDFViewer.url = url;
|
||||
document.title = url;
|
||||
if (url.indexOf("http") == 0)
|
||||
return;
|
||||
|
||||
if (this.thumbsLoadingInterval) {
|
||||
// cancel thumbs loading operations
|
||||
|
@ -511,3 +513,7 @@ window.onload = function() {
|
|||
}
|
||||
};
|
||||
};
|
||||
|
||||
window.addEventListener('pdfloaded', function(evt) {
|
||||
PDFViewer.readPDF(data);
|
||||
}, true);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue