diff --git a/views/default-mobile.handlebars b/views/default-mobile.handlebars index 1ac7af67..e8539f2f 100644 --- a/views/default-mobile.handlebars +++ b/views/default-mobile.handlebars @@ -3310,7 +3310,7 @@ } // Attribute: Mesh Agent - if ((node.agent != null) && (node.agent.id != null) && (mesh.mtype == 3)) { + if ((node.agent != null) && (node.agent.id != null) && (node.mtype == 3)) { if (node.agent.id == 4) { x += addDeviceAttribute("Device Type", "Windows"); } if (node.agent.id == 6) { x += addDeviceAttribute("Device Type", "Linux"); } if (node.agent.id == 29) { x += addDeviceAttribute("Device Type", "macOS"); } @@ -3435,7 +3435,7 @@ QH('p10html', x); // If we are looking at a local non-windows device, enable terminal capability. - if ((mesh.mtype == 3) && (node.agent != null) && (node.agent.id > 4) && (features2 & 0x00000200)) { node.agent.caps = 2; } + if ((node.mtype == 3) && (node.agent != null) && (node.agent.id > 4) && (features2 & 0x00000200)) { node.agent.caps = 2; } // Show node last 7 days timeline //drawDeviceTimeline(); diff --git a/views/default.handlebars b/views/default.handlebars index 51001118..21411d70 100644 --- a/views/default.handlebars +++ b/views/default.handlebars @@ -6273,7 +6273,7 @@ } // Attribute: Mesh Agent - if ((node.agent != null) && (node.agent.id != null) && (mesh.mtype == 3)) { + if ((node.agent != null) && (node.agent.id != null) && (node.mtype == 3)) { if (node.agent.id == 4) { x += addDeviceAttribute("Device Type", "Windows"); } if (node.agent.id == 6) { x += addDeviceAttribute("Device Type", "Linux"); } if (node.agent.id == 29) { x += addDeviceAttribute("Device Type", "macOS"); } @@ -6558,7 +6558,7 @@ Q('MainComputerImage').className = ((((!node.conn) || (node.conn == 0)) && (node.mtype != 3))?'gray':''); // If we are looking at a local non-windows device, enable terminal capability. - if ((mesh.mtype == 3) && (node.agent != null) && (node.agent.id > 4) && (features2 & 0x00000200)) { node.agent.caps = 2; } + if ((node.mtype == 3) && (node.agent != null) && (node.agent.id > 4) && (features2 & 0x00000200)) { node.agent.caps = 2; } // Setup/Refresh the desktop tab if (terminalAccess) { setupTerminal(); }