fix build errors.

This commit is contained in:
Miroslav Šedivý 2021-06-18 00:58:14 +02:00
parent 0b92270bc6
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)