Skip to content

Commit

Permalink
tune condition
Browse files Browse the repository at this point in the history
  • Loading branch information
mykola-mokhnach committed Jun 26, 2024
1 parent 6a52558 commit 8f7e872
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/webdriveragent.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export class WebDriverAgent {
this.setWDAPaths(args.bootstrapPath, args.agentPath);

this.wdaLocalPort = args.wdaLocalPort;
this.wdaRemotePort = (this.isRealDevice ? (args.wdaRemotePort ?? args.wdaLocalPort) : args.wdaLocalPort)
this.wdaRemotePort = ((this.isRealDevice ? args.wdaRemotePort : null) ?? args.wdaLocalPort)
|| WDA_AGENT_PORT;
this.wdaBaseUrl = args.wdaBaseUrl || WDA_BASE_URL;

Expand Down

0 comments on commit 8f7e872

Please sign in to comment.