Skip to content
This repository has been archived by the owner on Jul 28, 2023. It is now read-only.

Commit

Permalink
fix: set tunnel to true
Browse files Browse the repository at this point in the history
This is kind of weird setting, see browserstack/api#9

I think setting it always to true is the best we can do now, as running BS with Karma without a tunnel does not make any sense.
  • Loading branch information
vojtajina committed Nov 28, 2013
1 parent ae7266b commit 460e9d6
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,14 +105,11 @@ var BrowserStackBrowser = function(id, emitter, args, logger,
browser: args.browser,
// TODO(vojta): remove "version" (only for B-C)
browser_version: args.browser_version || args.version || 'latest',
url: url + '?id=' + id + '&return_url=about:blank'
url: url + '?id=' + id + '&return_url=about:blank',
'browserstack.tunnel': true
};

if (bsConfig) {
settings['browserstack.tunnel'] = true;
if (bsConfig.startTunnel === false) {
settings['browserstack.tunnel'] = false;
}
if (bsConfig.timeout) {
settings.timeout = bsConfig.timeout;
}
Expand Down

0 comments on commit 460e9d6

Please sign in to comment.