From c9b5125b206c9def176fc783a04ad347744eecd5 Mon Sep 17 00:00:00 2001 From: "Namhyeon, Go" Date: Tue, 17 Aug 2021 05:30:30 +0900 Subject: [PATCH] Update chrome.js --- lib/chrome.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) {