We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Learn more about funding links in repositories.
Report abuse
1 parent 4ca8d2a commit 256d5fbCopy full SHA for 256d5fb
client-src/utils/createSocketURL.js
@@ -5,7 +5,7 @@
5
function format(objURL) {
6
let protocol = objURL.protocol || "";
7
8
- if (protocol && !protocol.endsWith(":")) {
+ if (protocol && protocol.substr(-1) !== ":") {
9
protocol += ":";
10
}
11
0 commit comments