INNER CODE UNIT · JavaScript

target

cyrus-and/chrome-remote-interface · lib/chrome.js:24

            let target = targets.find((target) => {
                if (target.webSocketDebuggerUrl) {
                    backup = backup || target;
                    return target.type === 'page';
                } else {
                    return false;
                }
            });
            target = target || backup;
            if (target) {
                return target;
            } else {
                throw new Error('No inspectable targets');
            }
        };
        options = options || {};
        this.host = options.host || defaults.HOST;
        this.port = options.port || defaults.PORT;

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…