mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-10-26 19:01:39 -04:00
Using absolute path for download.
This commit is contained in:
parent
cc84f20072
commit
36aeef9091
1 changed files with 2 additions and 2 deletions
|
|
@ -27,9 +27,9 @@ function getDownloadPathURL(previewFile) {
|
|||
|
||||
function getEpubViewerURL(previewFile) {
|
||||
if (previewFile['primary_path']) {
|
||||
return `/epub/epub.html?url=download/${encodeMediaPath(previewFile['primary_path'])}`;
|
||||
return `/epub/epub.html?url=/download/${encodeMediaPath(previewFile['primary_path'])}`;
|
||||
} else {
|
||||
return `/epub/epub.html?url=download/${encodeMediaPath(previewFile['path'])}`;
|
||||
return `/epub/epub.html?url=/download/${encodeMediaPath(previewFile['path'])}`;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue