load pdf.js with version
This commit is contained in:
parent
47b348f724
commit
32a73f402b
2 changed files with 2 additions and 1 deletions
|
@ -59,7 +59,7 @@ Ox.PDFViewer = function(options, self) {
|
|||
.attr({
|
||||
frameborder: 0,
|
||||
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'
|
||||
})
|
||||
.onMessage(function(data, event) {
|
||||
|
|
|
@ -253,6 +253,7 @@ appPanel
|
|||
});
|
||||
}
|
||||
});
|
||||
window.pandora.getVersion = getPandoraVersion
|
||||
}
|
||||
|
||||
function loadPandoraFiles(callback) {
|
||||
|
|
Loading…
Reference in a new issue