Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 0a4e5b6

Browse files
committed
Add error audio file
1 parent fbba491 commit 0a4e5b6

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

res/media/error.mp3

9.27 KB
Binary file not shown.

src/voice-broadcast/models/VoiceBroadcastRecording.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ export class VoiceBroadcastRecording
344344
return;
345345
}
346346

347-
const audioElement = document.querySelector<HTMLAudioElement>("audio#messageAudio");
347+
const audioElement = document.querySelector<HTMLAudioElement>("audio#errorAudio");
348348
audioElement?.play();
349349
}
350350

test/voice-broadcast/models/VoiceBroadcastRecording-test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ describe("VoiceBroadcastRecording", () => {
259259
} as any as HTMLAudioElement;
260260

261261
jest.spyOn(document, "querySelector").mockImplementation((selector: string) => {
262-
if (selector === "audio#messageAudio") {
262+
if (selector === "audio#errorAudio") {
263263
return audioElement;
264264
}
265265

0 commit comments

Comments
 (0)