Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function initBrowser() {
wdio.run(initCrawlProfile, err => {
if (err) {
spinnerCrawl.fail(chalk.red(err.message));
}
while (listProfileName.length) {
loadProfile();
}
browser.end();
process.exit();
});
}