Skip to content

Commit

Permalink
fix(ui): clear some metas when transferring different package
Browse files Browse the repository at this point in the history
Signed-off-by: Neko Ayaka <[email protected]>
  • Loading branch information
nekomeowww committed Oct 5, 2024
1 parent 69b0f30 commit 7eccf85
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions app/components/Scan.vue
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,10 @@ async function scanFrame(result: QrScanner.ScanResult) {
startTime.value = performance.now()
endTime.value = 0
cached.clear()
filename.value = undefined
contentType.value = undefined
textContent.value = undefined
dataUrl.value = undefined
}
// The previous data set is already decoded, skip for any new blocks
else if (endTime.value) {
Expand Down
2 changes: 1 addition & 1 deletion app/pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ async function onFileChange(file?: File) {
</div>
<div
v-if="readPhase === ReadPhase.Ready && data"
h-full w-full flex justify-center
h-full w-full flex justify-center pb-8
>
<Generate
:max-scans-per-second="throttledFps"
Expand Down

0 comments on commit 7eccf85

Please sign in to comment.