MCPcopy Create free account
hub / github.com/AutoCodeStack/ios-device-farm / redirectToControl

Function redirectToControl

public/static/js/index.js:68–76  ·  view source on GitHub ↗
(element)

Source from the content-addressed store, hash-verified

66}
67
68function redirectToControl(element) {
69 var $row = $(element).closest("tr");
70 var $udid = $row.find(".udid").text();
71 const selectedDevice = devices.find((device) => device.udid == $udid);
72 const newWindow = window.open("/device.html", "_blank");
73 newWindow.addEventListener("load", () => {
74 newWindow.postMessage(selectedDevice, "*");
75 });
76}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected