mirror of
https://github.com/m1k1o/neko.git
synced 2025-06-07 21:32:44 +02:00
fix build errors.
This commit is contained in:
parent
0b92270bc6
commit
edabf74e2a
1 changed files with 1 additions and 1 deletions
|
@ -53,7 +53,7 @@ export class NekoWebSocket extends EventEmitter<NekoWebSocketEvents> {
|
|||
this._ws.onerror = rej.bind(this, new Error('connection error'))
|
||||
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 = () => {
|
||||
window.clearTimeout(timeout)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue