diff --git a/client/modules/view.js b/client/modules/view.js index 2e6e84ca..f3df2b2e 100644 --- a/client/modules/view.js +++ b/client/modules/view.js @@ -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,