From 6597de8e3bed2bdcad26365c36c86d4726d294fd Mon Sep 17 00:00:00 2001 From: Kenneth Auchenberg Date: Wed, 1 Jul 2015 16:50:20 +0900 Subject: [PATCH] Added the option to pass args to local browsers --- lib/local/index.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/local/index.js b/lib/local/index.js index e8e8b83..4333693 100644 --- a/lib/local/index.js +++ b/lib/local/index.js @@ -45,6 +45,10 @@ module.exports = function (settings, callback) { args = args.concat(cleanLaunch[name]); } + if(options.args) { + args = args.concat(options.args); + } + // Convert the command if set (some browsers need some customization) if(browser.getCommand) { browser.command = browser.getCommand(browser, url, args, options);