Fix close button check

This commit is contained in:
2019-07-18 20:36:55 +02:00
parent fb468a2acb
commit 2241421761

View File

@@ -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();
}