Add code to nulti page viewer to works with the extension

This commit is contained in:
Vivien Nicolas 2011-07-26 17:21:37 +02:00
parent f1a8a98757
commit 6f2d3238cd

View File

@ -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);