Skip to content

Commit

Permalink
[js] Avoid modifying CDP Grid endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
pujagani committed Oct 8, 2021
1 parent 0a2b4d9 commit c4e685a
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions javascript/node/selenium-webdriver/lib/webdriver.js
Original file line number Diff line number Diff line change
Expand Up @@ -1232,15 +1232,7 @@ class WebDriver {
}

if (debuggerAddress.match(/\/se\/cdp/)) {
if (debuggerAddress.match("ws:\/\/", "http:\/\/")) {
return debuggerAddress.replace("ws:\/\/", "http:\/\/")
}
else if (debuggerAddress.match("wss:\/\/", "https:\/\/")) {
return debuggerAddress.replace("wss:\/\/", "https:\/\/")
}
else {
return debuggerAddress
}
return debuggerAddress
}

const path = '/json/version'
Expand Down

0 comments on commit c4e685a

Please sign in to comment.