From f65773ef95db8d873f33ba1fa1aa982c380a5e7c Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Thu, 6 May 2021 21:49:53 -0600 Subject: [PATCH] Appease the linter --- src/voice/compat.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/voice/compat.ts b/src/voice/compat.ts index d91af31b6c..45c56d5e69 100644 --- a/src/voice/compat.ts +++ b/src/voice/compat.ts @@ -24,6 +24,9 @@ export function createAudioContext(opts?: AudioContextOptions): AudioContext { if (window.AudioContext) { return new AudioContext(opts); } else if (window.webkitAudioContext) { + // While the linter is correct that "a constructor name should not start with + // a lowercase letter", it's also wrong to think that we have control over this. + // eslint-disable-next-line new-cap return new window.webkitAudioContext(opts); } else { throw new Error("Unsupported browser");