Canvas is no longer hidden by the commander

This commit is contained in:
Devine Lu Linvega
2019-07-15 17:32:56 +09:00
parent ea0d4c3b4a
commit 994b97f58f
2 changed files with 10 additions and 8 deletions

View File

@@ -145,19 +145,19 @@ function Commander (ronin) {
// Display
this.show = function () {
if (this.el.className !== '') {
this.el.className = ''
if (ronin.el.className !== '') {
ronin.el.className = ''
}
}
this.hide = function () {
if (this.el.className !== 'hidden') {
this.el.className = 'hidden'
if (ronin.el.className !== 'hidden') {
ronin.el.className = 'hidden'
}
}
this.toggle = function () {
if (this.el.className === 'hidden') {
if (ronin.el.className === 'hidden') {
this.show()
} else {
this.hide()