Skip to content

Commit 62a9aa1

Browse files
authored
Merge pull request #190 from mythmon/patch-1
Fix comment about trailing slashes
2 parents 6460a65 + b7db6f7 commit 62a9aa1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/y-websocket.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ export class WebsocketProvider extends ObservableV2 {
278278
disableBc = false
279279
} = {}) {
280280
super()
281-
// ensure that url is always ends with /
281+
// ensure that serverUrl does not end with /
282282
while (serverUrl[serverUrl.length - 1] === '/') {
283283
serverUrl = serverUrl.slice(0, serverUrl.length - 1)
284284
}

0 commit comments

Comments
 (0)