mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-11-22 02:35:26 -05:00
Fix for #2396, new lines in message box.
This commit is contained in:
@@ -854,7 +854,6 @@ function handleServerCommand(data) {
|
|||||||
// Display a message box
|
// Display a message box
|
||||||
if (data.title && data.msg) {
|
if (data.title && data.msg) {
|
||||||
MeshServerLogEx(18, [data.title, data.msg], "Displaying message box, title=" + data.title + ", message=" + data.msg, data);
|
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) { }
|
try { require('message-box').create(data.title, data.msg, 120); } catch (e) { }
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user