dont load pdf from main url, to avoid cross origin permissions
This commit is contained in:
parent
708e6e5b2c
commit
018e3d23d0
1 changed files with 2 additions and 2 deletions
|
@ -159,8 +159,8 @@ pandora.ui.documentDialog = function(options) {
|
|||
? Ox.PDFViewer({
|
||||
height: dialogHeight,
|
||||
page: settings.page,
|
||||
url: pandora.getMediaURL('/documents/' + item.id + '/'
|
||||
+ item.name + '.' + item.extension),
|
||||
url: '/documents/' + item.id + '/'
|
||||
+ item.name + '.' + item.extension,
|
||||
width: dialogWidth,
|
||||
zoom: settings.zoom
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue