Make camera stream slightly more robust
This commit is contained in:
parent
56c7321c83
commit
fdcb1b3d6f
1 changed files with 5 additions and 2 deletions
|
|
@ -69,8 +69,11 @@ async function postImage(image: Blob | File) {
|
|||
}
|
||||
|
||||
async function onGallery(file: File) {
|
||||
await postImage(file);
|
||||
await initStream(facing.value);
|
||||
try {
|
||||
await postImage(file);
|
||||
} finally {
|
||||
await initStream(facing.value);
|
||||
}
|
||||
}
|
||||
|
||||
async function onRecord() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue