load pdf.js with version

This commit is contained in:
j 2023-10-27 15:53:44 +02:00
parent 47b348f724
commit 32a73f402b
2 changed files with 2 additions and 1 deletions

View file

@ -59,7 +59,7 @@ Ox.PDFViewer = function(options, self) {
.attr({ .attr({
frameborder: 0, frameborder: 0,
height: self.options.height + 'px', height: self.options.height + 'px',
src: self.options.pdfjsURL + '?file=' + encodeURIComponent(self.options.url) + '#page=' + self.options.page, src: self.options.pdfjsURL + '?' + pandora.getVersion() + '&file=' + encodeURIComponent(self.options.url) + '#page=' + self.options.page,
width: self.options.width + 'px' width: self.options.width + 'px'
}) })
.onMessage(function(data, event) { .onMessage(function(data, event) {

View file

@ -253,6 +253,7 @@ appPanel
}); });
} }
}); });
window.pandora.getVersion = getPandoraVersion
} }
function loadPandoraFiles(callback) { function loadPandoraFiles(callback) {