mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-11-21 19:07:46 +01:00
fix(web): image loading for firefox
This commit is contained in:
parent
dcf7209706
commit
6482000d6b
@ -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);
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user