Skip to content

Commit

Permalink
Fix error being printed to console on Chrome when navigating UI (#1429)
Browse files Browse the repository at this point in the history
Chrome prints an error to the console when you have `<img src="null" />`

The path `//:0` can be used for an empty image and Chrome will not raise
an error.
  • Loading branch information
stephenjust authored Sep 21, 2024
1 parent 27cb69c commit 360298c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion photon-client/src/components/app/photon-camera-stream.vue
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ const handleFullscreenRequest = () => {
const mjpgStream: any = ref(null);
onBeforeUnmount(() => {
if (!mjpgStream.value) return;
mjpgStream.value["src"] = null;
mjpgStream.value["src"] = "//:0";
});
</script>

Expand Down

0 comments on commit 360298c

Please sign in to comment.