mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2024-09-11 08:55:32 +03:00
Use real name in agent message box, #3654
This commit is contained in:
parent
bc6d3ce8a0
commit
1b49f64498
@ -1076,6 +1076,8 @@ function handleServerCommand(data) {
|
||||
break;
|
||||
}
|
||||
case 'messagebox': {
|
||||
sendConsoleText(JSON.stringify(data));
|
||||
|
||||
// Display a message box
|
||||
if (data.title && data.msg)
|
||||
{
|
||||
@ -1095,6 +1097,7 @@ function handleServerCommand(data) {
|
||||
ipr.title = data.title;
|
||||
ipr.message = data.msg;
|
||||
ipr.username = data.username;
|
||||
if (data.realname && (data.realname != '')) { ipr.username = data.realname; }
|
||||
global._clientmessage = ipr.then(function (img)
|
||||
{
|
||||
this.messagebox = require('win-dialog').create(this.title, this.message, this.username, { timeout: 120000, b64Image: img.split(',').pop(), background: color_options.background, foreground: color_options.foreground });
|
||||
|
Loading…
Reference in New Issue
Block a user