mirror of
https://github.com/sbrl/Nibriboard.git
synced 2018-01-10 21:33:49 +00:00
[client] More contains -> includes
This commit is contained in:
parent
3cb7c1576f
commit
71b1042e13
1 changed files with 1 additions and 1 deletions
|
@ -22,7 +22,7 @@ class Keyboard
|
|||
* @param {KeyboardEvent} event The keyboard event to handle.
|
||||
*/
|
||||
handleKeyDown(event) {
|
||||
if(!this.DownKeys.contains(event.keyCode))
|
||||
if(!this.DownKeys.includes(event.keyCode))
|
||||
this.DownKeys.push(event.keyCode);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue