fix
This commit is contained in:
2
dist/index.js
vendored
2
dist/index.js
vendored
File diff suppressed because one or more lines are too long
@@ -383,8 +383,13 @@ function detectImageFile(detector, file) {
|
||||
}
|
||||
|
||||
export function startScanForImage() {
|
||||
return chooseImageFile().then(file => {
|
||||
if (!file) {
|
||||
return null;
|
||||
}
|
||||
return createBarcodeDetector(getConfig("webScanType")).then(detector => {
|
||||
return chooseImageFile().then(file => detectImageFile(detector, file));
|
||||
return detectImageFile(detector, file);
|
||||
});
|
||||
}).then(code => {
|
||||
if (code && code.rawValue) {
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user