Skip to content

Commit

Permalink
fix: the translation is now disabled on launch
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
aymericbeaumet committed May 21, 2014
1 parent 35f448e commit b2f389b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.js
Expand Up @@ -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]);
};
};
Expand Down

0 comments on commit b2f389b

Please sign in to comment.