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({
|
? Ox.PDFViewer({
|
||||||
height: dialogHeight,
|
height: dialogHeight,
|
||||||
page: settings.page,
|
page: settings.page,
|
||||||
url: pandora.getMediaURL('/documents/' + item.id + '/'
|
url: '/documents/' + item.id + '/'
|
||||||
+ item.name + '.' + item.extension),
|
+ item.name + '.' + item.extension,
|
||||||
width: dialogWidth,
|
width: dialogWidth,
|
||||||
zoom: settings.zoom
|
zoom: settings.zoom
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue