diff --git a/example/file-input/index.html b/example/file-input/index.html index b88551d..2d3cff8 100644 --- a/example/file-input/index.html +++ b/example/file-input/index.html @@ -63,7 +63,7 @@ var App = { document.querySelector('input.isbn').value = result.codeResult.code; }) .catch(function() { - console.log("Not found!"); + document.querySelector('input.isbn').value = "Not Found"; }) .then(function() { this.attachListeners(); diff --git a/example/file-input/index.js b/example/file-input/index.js index 3479aed..888011b 100644 --- a/example/file-input/index.js +++ b/example/file-input/index.js @@ -14,7 +14,7 @@ var App = { document.querySelector('input.isbn').value = result.codeResult.code; }) .catch(function() { - console.log("Not found!"); + document.querySelector('input.isbn').value = "Not Found"; }) .then(function() { this.attachListeners();