From 9f5781539c52167dfe87137accb8c89945a30a03 Mon Sep 17 00:00:00 2001 From: Eugene Serb <46799701+eugene-serb@users.noreply.github.com> Date: Fri, 17 Jun 2022 13:00:12 +0300 Subject: [PATCH] Deleted disclaimer --- index.html | 8 -------- js/scripts.js | 3 ++- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/index.html b/index.html index 7ed0355..896e805 100644 --- a/index.html +++ b/index.html @@ -94,14 +94,6 @@

Patterns

-
-

Disclaimer

-
- - The author of the program code and the publisher is not responsible for the possible consequences of using the program. You use the program at your own risk. Check your device for correct operation. Please consult your doctor before using the program. - -
-
diff --git a/js/scripts.js b/js/scripts.js index de48436..922e50d 100644 --- a/js/scripts.js +++ b/js/scripts.js @@ -177,6 +177,7 @@ class Gamepad { init = () => { this.id = Date.now(); + this.canVibrate = (this.unit.vibrationActuator) ? true : false; this.isSelected = false; this.isVibrating = false; this.isLocked = false; @@ -350,7 +351,7 @@ class VibrationMaster { eventHandler = () => { if (this.gamepads.length > 0) { this.gamepads.forEach(gamepad => { - if (gamepad.unit.vibrationActuator) { + if (gamepad.canVibrate === true) { if (gamepad.unit.buttons[2].pressed === true && gamepad.unit.buttons[3].pressed === true) { gamepad.lock();