mirror of
https://github.com/liamcottle/reticulum-meshchat.git
synced 2026-12-02 12:56:39 -05:00
move conversation viewer to own vue component
This commit is contained in:
parent
ec9eb0e0e1
commit
63d1722672
4 changed files with 1184 additions and 1038 deletions
15
src/frontend/js/DialogUtils.js
Normal file
15
src/frontend/js/DialogUtils.js
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
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;
|
||||
Loading…
Add table
Add a link
Reference in a new issue