Fix error being printed to console on Chrome when navigating UI (#1429)

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.
This commit is contained in:
Stephen Just
2024-09-21 13:11:58 -07:00
committed by GitHub
parent 27cb69c094
commit 360298cc24

View File

@@ -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>