Update support.js
Fix when computer title has spaces. Temporary fix: will work better with next release
This commit is contained in:
@@ -3,8 +3,8 @@ $(document).on('ready', function() {
|
|||||||
|
|
||||||
//commento di check se carica
|
//commento di check se carica
|
||||||
if ($(location).attr('href').includes('computer') ){
|
if ($(location).attr('href').includes('computer') ){
|
||||||
name = $(".navigationheader").find("span").first().text().trim();
|
name = $(".navigationheader").find("span").first().text().split(" ")[0].trim();
|
||||||
u = "<span><a href='vnc://" + name +"'> Collegati con VNC</a><br><a href='rdp://" + name +"'> Collegati con RDP</a></span>";
|
u = "<span><a href='vnc://" + name +"'>VNC Connection</a><br><a href='rdp://" + name +"'>RDP Connection</a></span>";
|
||||||
$(".navigationheader").find("span").first().after(u);
|
$(".navigationheader").find("span").first().after(u);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user