From 386e4f2665730b0b134756b6e52a204a25fed52f Mon Sep 17 00:00:00 2001 From: Vavency Date: Sat, 30 Dec 2023 21:07:24 +0200 Subject: [PATCH] fix: lint MkModPlayer --- packages/frontend/src/components/MkModPlayer.vue | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/packages/frontend/src/components/MkModPlayer.vue b/packages/frontend/src/components/MkModPlayer.vue index 530b9c34d..f61144cbc 100644 --- a/packages/frontend/src/components/MkModPlayer.vue +++ b/packages/frontend/src/components/MkModPlayer.vue @@ -8,7 +8,7 @@
-
+
Pattern Hidden {{ i18n.ts.clickToShow }}
@@ -166,32 +166,31 @@ function toggleVisible() { firstFrame.value = true; patternHide.value = false; } - nextTick(() => { - stop(hide.value); - }); + nextTick(() => { stop(hide.value); }); } function togglePattern() { patternHide.value = !patternHide.value; if (!patternHide.value) { - if (player.value.getRow() == 0) { + if (player.value.getRow() === 0) { try { player.value.play(buffer); display(); - } catch (e) { - console.warn(e); + } catch (err) { + console.warn(err); } player.value.stop(); } } } + function display() { if (!displayCanvas.value) { stop(); return; } - if (patternHide.value) { return; } + if (patternHide.value) return; if (firstFrame.value) { firstFrame.value = false;