add: added alert sound to the front
This commit is contained in:
parent
cb9a0c27b4
commit
a91cf9d6a5
2 changed files with 2 additions and 0 deletions
BIN
front/public/alert.mp3
Normal file
BIN
front/public/alert.mp3
Normal file
Binary file not shown.
|
@ -15,6 +15,8 @@ export default function App() {
|
|||
level: level
|
||||
})
|
||||
.then(() => {
|
||||
const audio = new Audio("/alert.mp3")
|
||||
audio.play()
|
||||
setText("")
|
||||
})
|
||||
.catch((error) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue