mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-01-27 14:43:14 -05:00
Fix for #2396, new lines in message box.
This commit is contained in:
parent
e9763f5d99
commit
26fa971da4
@ -854,7 +854,6 @@ function handleServerCommand(data) {
|
||||
// Display a message box
|
||||
if (data.title && data.msg) {
|
||||
MeshServerLogEx(18, [data.title, data.msg], "Displaying message box, title=" + data.title + ", message=" + data.msg, data);
|
||||
data.msg = data.msg.split('\r').join('\\r').split('\n').join('\\n');
|
||||
try { require('message-box').create(data.title, data.msg, 120); } catch (e) { }
|
||||
}
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user