Fix for #2396, new lines in message box.

This commit is contained in:
Ylian Saint-Hilaire 2021-03-18 21:50:53 -07:00
parent e9763f5d99
commit 26fa971da4

View File

@ -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;