From 0bc57d550a3b201894cc7182fa9e2939456788ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20=C5=A0ediv=C3=BD?= Date: Sun, 9 May 2021 23:26:01 +0200 Subject: [PATCH] add autoconnect for WebRTC. --- src/component/main.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/component/main.vue b/src/component/main.vue index 6ea8144e..e300ff3f 100644 --- a/src/component/main.vue +++ b/src/component/main.vue @@ -422,7 +422,7 @@ Vue.set(this.state.connection, 'websocket', 'connected') this.events.emit('connection.websocket', 'connected') - if (!this.watching) { + if (!this.watching && this.autoconnect) { this.webrtcConnect() } })