mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-06-07 02:21:03 +03:00
Appease the linter
This commit is contained in:
parent
b08e47bfe1
commit
f65773ef95
@ -24,6 +24,9 @@ export function createAudioContext(opts?: AudioContextOptions): AudioContext {
|
|||||||
if (window.AudioContext) {
|
if (window.AudioContext) {
|
||||||
return new AudioContext(opts);
|
return new AudioContext(opts);
|
||||||
} else if (window.webkitAudioContext) {
|
} 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);
|
return new window.webkitAudioContext(opts);
|
||||||
} else {
|
} else {
|
||||||
throw new Error("Unsupported browser");
|
throw new Error("Unsupported browser");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user