mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
fix build errors.
This commit is contained in:
parent
0b92270bc6
commit
edabf74e2a
@ -53,7 +53,7 @@ export class NekoWebSocket extends EventEmitter<NekoWebSocketEvents> {
|
|||||||
this._ws.onerror = rej.bind(this, new Error('connection error'))
|
this._ws.onerror = rej.bind(this, new Error('connection error'))
|
||||||
this._ws.onmessage = this.onMessage.bind(this)
|
this._ws.onmessage = this.onMessage.bind(this)
|
||||||
|
|
||||||
let timeout = window.setTimeout(rej.bind(this, new Error('connection timeout')), connTimeout)
|
const timeout = window.setTimeout(rej.bind(this, new Error('connection timeout')), connTimeout)
|
||||||
this._ws.onopen = () => {
|
this._ws.onopen = () => {
|
||||||
window.clearTimeout(timeout)
|
window.clearTimeout(timeout)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user