Skip to content

Commit c4e685a

Browse files
committed
[js] Avoid modifying CDP Grid endpoint
1 parent 0a2b4d9 commit c4e685a

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

javascript/node/selenium-webdriver/lib/webdriver.js

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1232,15 +1232,7 @@ class WebDriver {
12321232
}
12331233

12341234
if (debuggerAddress.match(/\/se\/cdp/)) {
1235-
if (debuggerAddress.match("ws:\/\/", "http:\/\/")) {
1236-
return debuggerAddress.replace("ws:\/\/", "http:\/\/")
1237-
}
1238-
else if (debuggerAddress.match("wss:\/\/", "https:\/\/")) {
1239-
return debuggerAddress.replace("wss:\/\/", "https:\/\/")
1240-
}
1241-
else {
1242-
return debuggerAddress
1243-
}
1235+
return debuggerAddress
12441236
}
12451237

12461238
const path = '/json/version'

0 commit comments

Comments
 (0)