INNER CODE UNIT · JavaScript

_new

cyrus-and/chrome-remote-interface · bin/client.js:176

function _new(url, options) {
    options.url = url;
    CDP.New(options, (err, target) => {
        if (err) {
            console.error(err.toString());
            process.exit(1);
        }
        console.log(toJSON(target));
    });
}

function activate(args, options) {
    options.id = args;
    CDP.Activate(options, (err) => {
        if (err) {
            console.error(err.toString());
            process.exit(1);
        }

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…