Skip to content

Commit b2f389b

Browse files
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.
1 parent 35f448e commit b2f389b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ var ChromeBrowser = function(baseBrowserDecorator, args) {
1313
'--no-default-browser-check',
1414
'--no-first-run',
1515
'--disable-default-apps',
16-
'--disable-popup-blocking'
16+
'--disable-popup-blocking',
17+
'--disable-translate'
1718
].concat(flags, [url]);
1819
};
1920
};

0 commit comments

Comments
 (0)