refactor(view) viewImage: href, prefixURL -> prefixURL

This commit is contained in:
coderaiser 2019-01-03 14:30:14 +02:00
parent d92f5f6cf6
commit 455f4e77e0

View file

@ -111,7 +111,7 @@ function show(data, options) {
return viewFile();
case 'image':
return viewImage(path, prefixURL);
return viewImage(prefixURL);
case 'media':
return viewMedia(path);
@ -185,7 +185,7 @@ function hide() {
modal.close();
}
function viewImage(href, prefixURL) {
function viewImage(prefixURL) {
const makeTitle = (path) => {
return {
href: prefixURL + path,