catch error type any.

This commit is contained in:
Miroslav Šedivý 2021-09-01 19:11:01 +02:00
parent e78e19c44b
commit 970414d79b
4 changed files with 6 additions and 6 deletions

View File

@ -181,7 +181,7 @@ export class NekoWebRTC extends EventEmitter<NekoWebRTCEvents> {
try {
this._channel.close()
} catch (err) {}
} catch {}
this._channel = undefined
}
@ -197,7 +197,7 @@ export class NekoWebRTC extends EventEmitter<NekoWebRTCEvents> {
try {
this._peer.close()
} catch (err) {}
} catch {}
this._peer = undefined
}

View File

@ -59,7 +59,7 @@ export class NekoWebSocket extends EventEmitter<NekoWebSocketEvents> {
try {
this._ws.close()
} catch (err) {}
} catch {}
this._ws = undefined
}

View File

@ -208,7 +208,7 @@
try {
this.disconnect()
} catch (e) {}
} catch {}
if (this.state.authenticated) {
Vue.set(this.state, 'authenticated', false)
@ -264,7 +264,7 @@
try {
this.disconnect()
} catch (e) {}
} catch {}
try {
await this.api.session.logout()

View File

@ -44,7 +44,7 @@
}
URL.revokeObjectURL(image)
} catch (e) {
} catch {
await new Promise((res) => setTimeout(res, ERROR_DELAY_MS))
}
}