From 837f6641d02691005752415e91cdc8dfef0d1a21 Mon Sep 17 00:00:00 2001 From: Stefan Dej Date: Sat, 6 Feb 2021 02:20:08 +0100 Subject: [PATCH] bugfix: esp32 cam or ustreamer link fix bypassCache append (fixed #185) Signed-off-by: Stefan Dej --- src/components/panels/WebcamPanel.vue | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/components/panels/WebcamPanel.vue b/src/components/panels/WebcamPanel.vue index 0377a4a2..43e0271d 100644 --- a/src/components/panels/WebcamPanel.vue +++ b/src/components/panels/WebcamPanel.vue @@ -38,8 +38,11 @@ 'webcamConfig': state => state.gui.webcam }), url() { - const params = new URLSearchParams(this.webcamConfig.url); - params.set('bypassCache', ""+this.refresh); + let basicUrl = this.webcamConfig.url + if (basicUrl && basicUrl.indexOf("?") === -1) basicUrl += "?" + + const params = new URLSearchParams(basicUrl) + params.set('bypassCache', ""+this.refresh) return decodeURIComponent(params.toString()) }, webcamStyle() {