mirror of
https://github.com/m1k1o/neko.git
synced 2025-08-06 10:20:26 +02:00
update docs & minor typo.
This commit is contained in:
parent
eac56533e6
commit
6bf28aa55d
1 changed files with 1 additions and 1 deletions
|
@ -145,7 +145,7 @@
|
||||||
/////////////////////////////
|
/////////////////////////////
|
||||||
// Public methods
|
// Public methods
|
||||||
/////////////////////////////
|
/////////////////////////////
|
||||||
public async setUrl(url: string) {
|
public setUrl(url: string) {
|
||||||
const httpURL = url.replace(/^ws/, 'http').replace(/\/$|\/ws\/?$/, '')
|
const httpURL = url.replace(/^ws/, 'http').replace(/\/$|\/ws\/?$/, '')
|
||||||
this.api.setUrl(httpURL)
|
this.api.setUrl(httpURL)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue