mirror of
https://github.com/serratus/quaggaJS.git
synced 2026-08-13 05:31:37 +08:00
Updated file-based example
This commit is contained in:
@@ -63,7 +63,7 @@ var App = {
|
|||||||
document.querySelector('input.isbn').value = result.codeResult.code;
|
document.querySelector('input.isbn').value = result.codeResult.code;
|
||||||
})
|
})
|
||||||
.catch(function() {
|
.catch(function() {
|
||||||
console.log("Not found!");
|
document.querySelector('input.isbn').value = "Not Found";
|
||||||
})
|
})
|
||||||
.then(function() {
|
.then(function() {
|
||||||
this.attachListeners();
|
this.attachListeners();
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ var App = {
|
|||||||
document.querySelector('input.isbn').value = result.codeResult.code;
|
document.querySelector('input.isbn').value = result.codeResult.code;
|
||||||
})
|
})
|
||||||
.catch(function() {
|
.catch(function() {
|
||||||
console.log("Not found!");
|
document.querySelector('input.isbn').value = "Not Found";
|
||||||
})
|
})
|
||||||
.then(function() {
|
.then(function() {
|
||||||
this.attachListeners();
|
this.attachListeners();
|
||||||
|
|||||||
Reference in New Issue
Block a user