mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
update docs & minor typo.
This commit is contained in:
parent
eac56533e6
commit
6bf28aa55d
@ -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…
Reference in New Issue
Block a user