Skip to content

Commit

Permalink
Merge pull request #190 from mythmon/patch-1
Browse files Browse the repository at this point in the history
Fix comment about trailing slashes
  • Loading branch information
dmonad authored Jan 24, 2025
2 parents 6460a65 + b7db6f7 commit 62a9aa1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/y-websocket.js
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ export class WebsocketProvider extends ObservableV2 {
disableBc = false
} = {}) {
super()
// ensure that url is always ends with /
// ensure that serverUrl does not end with /
while (serverUrl[serverUrl.length - 1] === '/') {
serverUrl = serverUrl.slice(0, serverUrl.length - 1)
}
Expand Down

0 comments on commit 62a9aa1

Please sign in to comment.