Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
find: function() {
try {
return which.find(chromedriver);
} catch(e) {
if(fs.existsSync(defaultPath)) {
return defaultPath;
} else {
return null;
}
}
}
};