Compare commits
2 commits
4b1106358e
...
60c0e3171e
| Author | SHA1 | Date | |
|---|---|---|---|
| 60c0e3171e | |||
| 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