From 360298cc24c1a3615ede9292dfa35bf9824a9c47 Mon Sep 17 00:00:00 2001 From: Stephen Just Date: Sat, 21 Sep 2024 13:11:58 -0700 Subject: [PATCH] Fix error being printed to console on Chrome when navigating UI (#1429) Chrome prints an error to the console when you have `` The path `//:0` can be used for an empty image and Chrome will not raise an error. --- photon-client/src/components/app/photon-camera-stream.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/photon-client/src/components/app/photon-camera-stream.vue b/photon-client/src/components/app/photon-camera-stream.vue index 710fd81b2..2fa78fb9f 100644 --- a/photon-client/src/components/app/photon-camera-stream.vue +++ b/photon-client/src/components/app/photon-camera-stream.vue @@ -57,7 +57,7 @@ const handleFullscreenRequest = () => { const mjpgStream: any = ref(null); onBeforeUnmount(() => { if (!mjpgStream.value) return; - mjpgStream.value["src"] = null; + mjpgStream.value["src"] = "//:0"; });