diff --git a/res/static/script/Viewer.js b/res/static/script/Viewer.js index e656cdb..c711e4d 100644 --- a/res/static/script/Viewer.js +++ b/res/static/script/Viewer.js @@ -20,7 +20,7 @@ var Viewer = { // The close button only works if the window has an opener. So we hide // the button if it does not - if (window.opener === null) { + if (window.opener === null && window.history.length !== 1) { $("#button_close_file_viewer").remove(); }