Permalink
Browse files

Stringify "browser" for saucelabs support

  • Loading branch information...
1 parent d897447 commit fdea336ed2113cb15030b6e9eaa23f3421c28c97 @tj tj committed Sep 7, 2010
Showing with 6 additions and 1 deletion.
  1. +2 −0 .gitignore
  2. +1 −0 Readme.md
  3. +3 −1 lib/soda/client.js
View
2 .gitignore
@@ -0,0 +1,2 @@
+.DS_Store
+test.js
View
1 Readme.md
@@ -7,5 +7,6 @@
## More Information
+ - [Saucelabs Browsers](http://saucelabs.com/products/docs/sauce-ondemand/browsers)
- [Selenese Introduction](http://seleniumhq.org/docs/02_selenium_basics.html)
- [Command Reference](http://release.seleniumhq.org/selenium-core/0.8.0/reference.html).
View
4 lib/soda/client.js
@@ -32,7 +32,9 @@ var Client = exports = module.exports = function Client(options) {
this.port = options.port || 4444;
this.browser = options.browser || 'firefox';
this.url = options.url;
- if (this.browser[0] !== '*') this.browser = '*' + this.browser;
+ if (this.browser[0] !== '*') {
+ this.browser = '*' + this.browser;
+ }
EventEmitter.call(this);
};

0 comments on commit fdea336

Please sign in to comment.