fix: songs playing at the same time
This commit is contained in:
parent
a847e850bc
commit
6f0c9f9469
1 changed files with 2 additions and 1 deletions
|
|
@ -6,10 +6,11 @@
|
|||
|
||||
let getFile = async () => {
|
||||
const audio = await window.electron.ipcRenderer.invoke('getAudioFile')
|
||||
|
||||
if (audio) {
|
||||
audioFile = new Audio(`data:audio/mpeg;base64,${audio}`) // Assurez-vous que le type MIME est correct
|
||||
} else {
|
||||
window.electron.ipcRenderer.invoke("error", "This is not a playable audio file !")
|
||||
window.electron.ipcRenderer.invoke('error', 'This is not a playable audio file !')
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue