webcam
This commit is contained in:
@@ -83,6 +83,9 @@ function applyMenuSupportRules(clientId) {
|
||||
const hvncBtn = menu.querySelector('[data-open="hvnc"]');
|
||||
setAvailability(hvncBtn, isWindows, "HVNC is only supported on Windows clients.");
|
||||
|
||||
const webcamBtn = menu.querySelector('[data-open="webcam"]');
|
||||
setAvailability(webcamBtn, isWindows, "Webcam viewer is only supported on Windows clients.");
|
||||
|
||||
const keyloggerBtn = menu.querySelector('[data-open="keylogger"]');
|
||||
setAvailability(
|
||||
keyloggerBtn,
|
||||
@@ -595,6 +598,11 @@ menu.addEventListener("click", async (e) => {
|
||||
closeMenu(clearContext);
|
||||
return;
|
||||
}
|
||||
if (open === "webcam") {
|
||||
window.open(`/webcam?clientId=${contextCard}`, "_blank", "noopener");
|
||||
closeMenu(clearContext);
|
||||
return;
|
||||
}
|
||||
if (open === "hvnc") {
|
||||
window.open(`/hvnc?clientId=${contextCard}`, "_blank", "noopener");
|
||||
closeMenu(clearContext);
|
||||
|
||||
Reference in New Issue
Block a user