Skip to content

Commit 3fa0322

Browse files
committed
fix(browserstack): only set default os when not set
1 parent 6e8a107 commit 3fa0322

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/browserstack/index.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@ export default class BrowserStackBrowser extends SeleniumLogging(SeleniumBrowser
1212
builder.usingServer('https://hub-cloud.browserstack.com/wd/hub')
1313
})
1414

15-
this.setOS('windows', 10)
15+
// set default os if user hasnt set anything
16+
if (!config.browserConfig || !config.browserConfig.os) {
17+
this.setOS('windows', 10)
18+
}
1619
}
1720

1821
getConfigProperty(property, capabilities = {}, defaulValue) {

0 commit comments

Comments
 (0)