fix rdp port translation
Signed-off-by: si458 <simonsmith5521@gmail.com>
si458 committed
Feb 20, 2024 at 22:38 UTC
af3e7f6186bd4c96fa195e0b1f866b7fed5896a1
1 file changed
+1
-1
views/default.handlebars
+1
-1
@@ -9007,7 +9007,7 @@
9007
QE('connectbutton1', online);
9008
QE('connectbutton1r', online || (currentNode.mtype == 3));
9009
if (currentNode.rdpport && currentNode.rdpport != 3389) {
9010
- QH('desktopCustomUpperRight', '<a style="cursor:pointer;line-height:22px" onclick="cmaltportaction(1,event)">RDP Port ' + currentNode.rdpport + '</a>');
9010
+ QH('desktopCustomUpperRight', '<a style="cursor:pointer;line-height:22px" onclick="cmaltportaction(1,event)">' + format("RDP Port {0}", (currentNode.rdpport?currentNode.rdpport:3389)) + '</a>');
9011
} else {
9012
QH('desktopCustomUpperRight', '');
9013
}