remove close button

This commit is contained in:
2020-02-25 00:26:31 +01:00
parent 6810165968
commit b4524ded62
2 changed files with 0 additions and 13 deletions

View File

@@ -25,12 +25,6 @@ function Viewer(type, viewToken, data) {
this.toolbar.toggle()
}
// The close button only works if the window has an opener. So we hide
// the button if it does not
if (window.opener === null && window.history.length !== 1) {
document.getElementById("button_close_file_viewer").remove()
}
if (type === "file") {
this.isFile = true
this.title = data.name