mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-03-09 15:40:18 +00:00
add old style alertbox
* add old style alertbox Signed-off-by: si458 <simonsmith5521@gmail.com>
This commit is contained in:
parent
91c83e2622
commit
947d84316b
2 changed files with 11 additions and 1 deletions
|
@ -1466,6 +1466,14 @@ function handleServerCommand(data) {
|
|||
sendConsoleText('localappMsg: ' + data.appid + ', ' + JSON.stringify(data.value));
|
||||
if (data.appid != null) { sendToRegisteredApp(data.appid, data.value); } else { broadcastToRegisteredApps(data.value); }
|
||||
break;
|
||||
case 'alertbox': {
|
||||
// Display an old style alert box
|
||||
if (data.title && data.msg) {
|
||||
MeshServerLogEx(18, [data.title, data.msg], "Displaying alert box, title=" + data.title + ", message=" + data.msg, data);
|
||||
try { require('message-box').create(data.title, data.msg, 9999, 1).then(function () { }).catch(function () { }); } catch (ex) { }
|
||||
}
|
||||
break;
|
||||
}
|
||||
default:
|
||||
// Unknown action, ignore it.
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue