Skip to content

Commit b7db6f7

Browse files
authored
Fix comment about trailing slashes
1 parent 6460a65 commit b7db6f7

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)