From b168b57de8b1e2702b82cc538a79b2749b8a394f Mon Sep 17 00:00:00 2001 From: "Namhyeon, Go" Date: Sat, 7 Jun 2025 04:26:33 +0900 Subject: [PATCH] Update chrome.js --- lib/chrome.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/lib/chrome.js b/lib/chrome.js index 992db34..d44beba 100644 --- a/lib/chrome.js +++ b/lib/chrome.js @@ -79,8 +79,11 @@ var ChromeObject = function() { this.setProfile = function(profileName, installedDir) { this.profileName = (profileName == "Default" ? "Chrome" : profileName); - this.workingDirectory = this.workingDirectory.replace(":installedDir", installedDir); - this.binPath = this.binPath.replace(":installedDir", installedDir); + if (installedDir != null) { + this.installedDir = installedDir; + } + this.workingDirectory = this.workingDirectory.replace(":installedDir", this.installedDir); + this.binPath = this.binPath.replace(":installedDir", this.installedDir); return this; }; @@ -1423,7 +1426,7 @@ exports.startDebugInPrivate = function(url, proxy, profileName, debuggingPort, i ; }; -exports.VERSIONINFO = "Chrome Web Browser Debugging Interface (chrome.js) version 0.4.19"; +exports.VERSIONINFO = "Chrome Web Browser Debugging Interface (chrome.js) version 0.4.20"; exports.AUTHOR = "abuse@catswords.net"; exports.global = global; exports.require = global.require;