diff --git a/client/src/events.js b/client/src/events.js index 61f1cf3e..39390c9c 100644 --- a/client/src/events.js +++ b/client/src/events.js @@ -104,8 +104,8 @@ function registerEvents(registry, events, tutorial) { title: 'LOGIN', position: 'center', inputs: [ - [USER_INPUT, 'change', null, true], // true to focus - [PASSWORD_INPUT, 'change', null], + [USER_INPUT, 'change', () => true, true], // true to focus + [PASSWORD_INPUT, 'change', () => true], ], buttons: [ [LOGIN_BUTTON, submitLogin], // true to focus diff --git a/client/src/scenes/menu.js b/client/src/scenes/menu.js index 42e6440a..88a88d73 100644 --- a/client/src/scenes/menu.js +++ b/client/src/scenes/menu.js @@ -89,7 +89,7 @@ class Menu extends Phaser.Scene { Object.keys(this.scene.manager.keys).forEach((key) => { if (!ACTIVE_SCENES.includes(key)) { // Remove listeners and scene - this.scene.get(key).cleanUp(); + if (this.scene.get(key).cleanUp) this.scene.get(key).cleanUp(); } }); } diff --git a/server/WORKLOG.md b/server/WORKLOG.md index 20508485..6e8428a1 100644 --- a/server/WORKLOG.md +++ b/server/WORKLOG.md @@ -13,7 +13,6 @@ strangle ## SOON -* tutorial * aoe skills * keep track of games joined