From 74ff48840bc4b2e3e8f3c9b9baa0083db93df8dd Mon Sep 17 00:00:00 2001 From: coderaiser Date: Tue, 21 Feb 2017 11:39:29 +0200 Subject: [PATCH] fix(view) showImage: can not show image --- client/view.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/client/view.js b/client/view.js index 4f432a0e..45950aa6 100644 --- a/client/view.js +++ b/client/view.js @@ -188,7 +188,7 @@ function hide() { function showImage(href, prefixUrl) { const title = Info.name; - const names = Info.file + const names = Info.files .filter((file) => { const name = DOM.getCurrentName(file); return isImage(name); @@ -204,10 +204,12 @@ function showImage(href, prefixUrl) { href, title, }; - }).unshift({ - href, - title, }); + + names.unshift({ + href, + title, + }); const config = Object.assign({}, Config, { autoSize : true,