Changed button exists check

This commit is contained in:
Official Noob
2019-08-21 18:29:41 +01:00
committed by GitHub
parent 84d5d3124c
commit bfb876af8b

View File

@@ -537,7 +537,7 @@ function removePlayerControlsButton() {
}
function createButton(baseid, title, callback, imageName) {
if (document.getElementById(baseid) != null) return;
if (document.getElementById(baseid+"Button") != null) return;
// Button HTML
let newButton = document.createElement("button");
newButton.id = baseid+"Button";