From 6482000d6b968e64e9dd5e55ab6b48159f1fa2f1 Mon Sep 17 00:00:00 2001 From: Paul Armstrong Date: Wed, 27 Jan 2021 07:29:59 -0800 Subject: [PATCH] fix(web): image loading for firefox --- web/src/components/CameraImage.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/components/CameraImage.jsx b/web/src/components/CameraImage.jsx index 351e3b1cb..3b6c02f18 100644 --- a/web/src/components/CameraImage.jsx +++ b/web/src/components/CameraImage.jsx @@ -38,7 +38,7 @@ export default function CameraImage({ camera, onload, searchParams = '' }) { const img = useMemo(() => new Image(), [camera]); img.onload = useCallback( (event) => { - const src = event.path[0].currentSrc; + const src = event.srcElement.currentSrc; setLoadedSrc(src); onload && onload(event); },