Skip to content

Commit

Permalink
fixed error message on closing menu window (#254)
Browse files Browse the repository at this point in the history
  • Loading branch information
nhnb committed Jan 20, 2020
1 parent 2a03935 commit cf0c53e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions srcjs/stendhal/ui/menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,9 @@ stendhal.ui.menu = {
this.popup.popupdiv.addEventListener("click", function(e) {
var cmd = e.target.id.substring(11);
that.popup.close();
console.log(cmd);
stendhal.slashActionRepository.execute("/" + cmd);
if (cmd) {
stendhal.slashActionRepository.execute("/" + cmd);
}
});

this.close = function() {
Expand Down

0 comments on commit cf0c53e

Please sign in to comment.