Update chrome.js

This commit is contained in:
Namhyeon Go 2025-06-18 15:25:32 +09:00
parent 9b6270ff72
commit 2aa6fdc256

View File

@ -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 + "\"");