From b2f389ba51bfed73a811f34fbaa5aeb7ecb9984a Mon Sep 17 00:00:00 2001 From: Aymeric Beaumet Date: Wed, 21 May 2014 03:28:30 +0100 Subject: [PATCH] fix: the translation is now disabled on launch As the '--user-data-dir' option is provided on the browsers launch with a dumb directory, the user options are not kept (deliberately). Therefore if the user's browser language is not English, it will ask to translate the Karma page at each launch, which can be annoying. To address this issue, this fix manually disables the translation by passing the appropriate command line argument. --- index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 722531c..b416551 100644 --- a/index.js +++ b/index.js @@ -13,7 +13,8 @@ var ChromeBrowser = function(baseBrowserDecorator, args) { '--no-default-browser-check', '--no-first-run', '--disable-default-apps', - '--disable-popup-blocking' + '--disable-popup-blocking', + '--disable-translate' ].concat(flags, [url]); }; };