Skip to content

Commit

Permalink
feat: play sound on successful swaps
Browse files Browse the repository at this point in the history
PoC :D still a random sound. but it could be played when wo do the notifications aswell. like here: #528

closes #338
  • Loading branch information
dni committed Mar 27, 2024
1 parent 6926d17 commit 0224532
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Binary file added public/sound.mp3
Binary file not shown.
3 changes: 3 additions & 0 deletions src/context/Global.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,9 @@ const GlobalProvider = (props: { children: any }) => {
const notify = (type: string, message: string) => {
setNotificationType(type);
setNotification(message);
var audio = new Audio("/sound.mp3");
audio.volume = 0.2;
audio.play();
};

const fetchPairs = (asset: string = BTC) => {
Expand Down

0 comments on commit 0224532

Please sign in to comment.