Make camera stream slightly more robust

This commit is contained in:
Joscha 2025-03-27 20:54:11 +01:00
parent 56c7321c83
commit fdcb1b3d6f

View file

@ -69,8 +69,11 @@ async function postImage(image: Blob | File) {
} }
async function onGallery(file: File) { async function onGallery(file: File) {
try {
await postImage(file); await postImage(file);
} finally {
await initStream(facing.value); await initStream(facing.value);
}
} }
async function onRecord() { async function onRecord() {