fix composing new message and unmounting listeners

This commit is contained in:
liamcottle 2024-08-06 00:15:09 +12:00
parent ec63939b7c
commit 68df149c82
5 changed files with 85 additions and 54 deletions

View file

@ -10,6 +10,16 @@ class DialogUtils {
}
}
static async prompt(message) {
if(window.electron){
// running inside electron, use ipc prompt
return await window.electron.prompt(message);
} else {
// running inside normal browser, use browser prompt
return window.prompt(message);
}
}
}
export default DialogUtils;