mirror of
https://github.com/liamcottle/reticulum-meshchat.git
synced 2026-11-28 19:06:29 -05:00
16 lines
340 B
JavaScript
16 lines
340 B
JavaScript
|
|
class DialogUtils {
|
||
|
|
|
||
|
|
static alert(message) {
|
||
|
|
if(window.electron){
|
||
|
|
// running inside electron, use ipc alert
|
||
|
|
window.electron.alert(message);
|
||
|
|
} else {
|
||
|
|
// running inside normal browser, use browser alert
|
||
|
|
window.alert(message);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
}
|
||
|
|
|
||
|
|
export default DialogUtils;
|