Update support.js

Fix when computer title has spaces.
Temporary fix: will work better with next release
This commit is contained in:
Kaya84
2021-11-22 15:20:04 +01:00
committed by GitHub
parent 535e16c504
commit eb42551f89

View File

@@ -3,9 +3,9 @@ $(document).on('ready', function() {
//commento di check se carica
if ($(location).attr('href').includes('computer') ){
name = $(".navigationheader").find("span").first().text().trim();
u = "<span><a href='vnc://" + name +"'> Collegati con VNC</a><br><a href='rdp://" + name +"'> Collegati con RDP</a></span>";
name = $(".navigationheader").find("span").first().text().split(" ")[0].trim();
u = "<span><a href='vnc://" + name +"'>VNC Connection</a><br><a href='rdp://" + name +"'>RDP Connection</a></span>";
$(".navigationheader").find("span").first().after(u);
}
});
});