1
0
Fork 0
mirror of https://github.com/m1k1o/neko.git synced 2025-08-12 00:38:25 +02:00

fix build errors.

This commit is contained in:
Miroslav Šedivý 2021-06-18 00:58:14 +02:00
commit edabf74e2a

View file

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