Merge pull request #190 from mythmon/patch-1

Fix comment about trailing slashes
This commit is contained in:
Kevin Jahns 2025-01-24 15:32:47 +01:00 committed by GitHub
commit 62a9aa1374
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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)
}