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

Commit

Permalink
Add error audio file
Browse files Browse the repository at this point in the history
  • Loading branch information
weeman1337 committed May 8, 2023
1 parent fbba491 commit 0a4e5b6
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
Binary file added res/media/error.mp3
Binary file not shown.
2 changes: 1 addition & 1 deletion src/voice-broadcast/models/VoiceBroadcastRecording.ts
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ export class VoiceBroadcastRecording
return;
}

const audioElement = document.querySelector<HTMLAudioElement>("audio#messageAudio");
const audioElement = document.querySelector<HTMLAudioElement>("audio#errorAudio");
audioElement?.play();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ describe("VoiceBroadcastRecording", () => {
} as any as HTMLAudioElement;

jest.spyOn(document, "querySelector").mockImplementation((selector: string) => {
if (selector === "audio#messageAudio") {
if (selector === "audio#errorAudio") {
return audioElement;
}

Expand Down

0 comments on commit 0a4e5b6

Please sign in to comment.