Fix close button check
This commit is contained in:
1 parent
fb468a2acb
commit
2241421761
1 file changed
+1
-1
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user