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