1
0

Fix syntax error in animeCat.js

This commit is contained in:
2025-05-26 04:51:48 +02:00
parent 5efcf5053d
commit fc94b6fdb1

View File

@@ -213,7 +213,7 @@ _bindMouseHold() {
mouseDown = false; mouseDown = false;
reopenEyes(); reopenEyes();
const heldFor = Date.now() - mouseDownAt; const heldFor = Date.now() - mouseDownAt;
const mouthOpenTime = Math.max(heldFor - 1000, 0); const mouthOpenTime = (Math.max(heldFor - 1000, 0) < 500 ?) 500 : Math.max(heldFor - 1000, 0);
if (mouthOpenTime > 0) { if (mouthOpenTime > 0) {
this.img.src = this.images.mouthOpen || this.images.default; this.img.src = this.images.mouthOpen || this.images.default;
this._startBlinking(); this._startBlinking();