diff --git a/lib/chrome.js b/lib/chrome.js index 4ca0568..6a8d929 100644 --- a/lib/chrome.js +++ b/lib/chrome.js @@ -767,8 +767,8 @@ var ChromeObject = function() { this.create(); }; -exports.create = function() { - return new ChromeObject(); +exports.create = function(profileName) { + return (new ChromeObject()).setProfile(profileName, null); }; exports.start = function(url, proxyPort, profileName, userDataDir, installedDir) {