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