mirror of
https://github.com/PhotonVision/photonvision
synced 2026-07-03 03:01:40 +00:00
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:
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user