fix
This commit is contained in:
@@ -344,4 +344,18 @@ export function startScan() {
|
||||
_scan_resolve = null;
|
||||
__closed();
|
||||
});
|
||||
}
|
||||
|
||||
export function scanImage() {
|
||||
if (!isSupportImageScan()) {
|
||||
console.log("not support image scanner");
|
||||
return;
|
||||
}
|
||||
startScanForImage().then(resp => {
|
||||
if (resp && resp.result) {
|
||||
__result(resp.result);
|
||||
}
|
||||
}).catch(err => {
|
||||
console.log("scan image error", err);
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user