Clean up new worker configuration
All checks were successful
Build Dev PWA / Build-PWA (push) Successful in 39s

Signed-off-by: Justin Georgi <justin.georgi@gmail.com>
This commit is contained in:
2024-09-11 11:46:37 -07:00
parent dcdde0289b
commit 47ec235cfa
3 changed files with 6 additions and 3 deletions

View File

@@ -362,7 +362,9 @@
this.detectWorker.postMessage({call: 'localDetect', image: res[1]}, [res[1]])
})
} else {
this.localDetect(this.imageView).then(dets => {
createImageBitmap(this.imageView).then(res => {
return this.localDetect(res)
}).then(dets => {
this.detecting = false
this.resultData = dets
this.uploadDirty = true