mirror of
https://github.com/serratus/quaggaJS.git
synced 2026-08-12 21:21:42 +08:00
Fixed #100
This commit is contained in:
+2
-1
@@ -237,11 +237,12 @@ function hasCodeResult (result) {
|
||||
}
|
||||
|
||||
function publishResult(result, imageData) {
|
||||
const resultToPublish = result && (result.barcodes || result);
|
||||
let resultToPublish = result;
|
||||
|
||||
if (result && _onUIThread) {
|
||||
transformResult(result);
|
||||
addResult(result, imageData);
|
||||
resultToPublish = result.barcodes || result;
|
||||
}
|
||||
|
||||
Events.publish("processed", resultToPublish);
|
||||
|
||||
Reference in New Issue
Block a user