From 87d7dee6201236174031b328b274049030e5c451 Mon Sep 17 00:00:00 2001 From: Mar0xy Date: Thu, 2 Nov 2023 23:32:43 +0100 Subject: [PATCH] chore: lint --- packages/frontend/src/components/MkModPlayer.vue | 8 ++++---- packages/frontend/src/scripts/chiptune2.ts | 1 + 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/packages/frontend/src/components/MkModPlayer.vue b/packages/frontend/src/components/MkModPlayer.vue index c0fe83189..c24eaab2f 100644 --- a/packages/frontend/src/components/MkModPlayer.vue +++ b/packages/frontend/src/components/MkModPlayer.vue @@ -90,8 +90,8 @@ player.value.load(url).then((result) => { player.value.play(buffer); progress.value!.max = player.value.duration(); display(); - } catch (e) { - console.warn(e); + } catch (err) { + console.warn(err); } player.value.stop(); }).catch((error) => { @@ -128,8 +128,8 @@ function stop(noDisplayUpdate = false) { try { player.value.play(buffer); display(); - } catch (e) { - console.warn(e); + } catch (err) { + console.warn(err); } } player.value.stop(); diff --git a/packages/frontend/src/scripts/chiptune2.ts b/packages/frontend/src/scripts/chiptune2.ts index e4d08e3da..e52adb07d 100644 --- a/packages/frontend/src/scripts/chiptune2.ts +++ b/packages/frontend/src/scripts/chiptune2.ts @@ -1,4 +1,5 @@ /* global libopenmpt UTF8ToString writeAsciiToMemory */ +/* eslint-disable */ const ChiptuneAudioContext = window.AudioContext || window.webkitAudioContext;