Add code to nulti page viewer to works with the extension
This commit is contained in:
parent
f1a8a98757
commit
6f2d3238cd
@ -249,6 +249,8 @@ var PDFViewer = {
|
|||||||
openURL: function(url) {
|
openURL: function(url) {
|
||||||
PDFViewer.url = url;
|
PDFViewer.url = url;
|
||||||
document.title = url;
|
document.title = url;
|
||||||
|
if (url.indexOf("http") == 0)
|
||||||
|
return;
|
||||||
|
|
||||||
if (this.thumbsLoadingInterval) {
|
if (this.thumbsLoadingInterval) {
|
||||||
// cancel thumbs loading operations
|
// cancel thumbs loading operations
|
||||||
@ -511,3 +513,7 @@ window.onload = function() {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
window.addEventListener('pdfloaded', function(evt) {
|
||||||
|
PDFViewer.readPDF(data);
|
||||||
|
}, true);
|
||||||
|
Loading…
Reference in New Issue
Block a user