From 925ca7001ae32f36e25b2821596f5e28301865e8 Mon Sep 17 00:00:00 2001 From: Eugene Serb <46799701+eugene-serb@users.noreply.github.com> Date: Thu, 30 Jun 2022 20:26:21 +0300 Subject: [PATCH] Fixed no add gamepad if this length >= 1 --- src/components/WaveloversApp.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/WaveloversApp.vue b/src/components/WaveloversApp.vue index d3f07b1..2cc309c 100644 --- a/src/components/WaveloversApp.vue +++ b/src/components/WaveloversApp.vue @@ -53,7 +53,7 @@ window.addEventListener('gamepaddisconnected', () => this.deleteGamepad(event)); }, addGamepad(event) { - if (this.gamepads.length > 1) { + if (this.gamepads.length >= 1) { return; } else { this.gamepads.push(new Gamepad(event.gamepad));