From 2aa6fdc256adce1295846902c50e98ee3f328496 Mon Sep 17 00:00:00 2001 From: "Namhyeon, Go" Date: Wed, 18 Jun 2025 15:25:32 +0900 Subject: [PATCH] Update chrome.js --- lib/chrome.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/chrome.js b/lib/chrome.js index c63c35a..6f7a51d 100644 --- a/lib/chrome.js +++ b/lib/chrome.js @@ -320,8 +320,10 @@ var ChromeObject = function() { cmd.push("\"--user-agent=" + this.userAgent + "\""); } - // disable an unwanted features - cmd.push("--disable-features=" + this.disableFeatures.join(',')); + // disable unwanted features + if (this.disableFeatures.length > 0) { + cmd.push("\"--disable-features=" + this.disableFeatures.join(',') + "\""); + } // set the URL cmd.push((this.isAppMode ? "--app=\"" : "\"") + url + "\"");