INNER CODE UNIT · JavaScript
inspect
cyrus-and/chrome-remote-interface · bin/client.js:28
function inspect(target, args, options) {
options.local = args.local;
// otherwise the active target
if (target) {
if (args.webSocket) {
// by WebSocket URL
options.target = target;
} else {
// by target id
options.target = (targets) => {
return targets.findIndex((_target) => {
return _target.id === target;
});
};
}
}
if (args.protocol) {