From be70d72e0b426a6eb45c7198413ea307ade4fdeb Mon Sep 17 00:00:00 2001 From: Christoph Oberhofer Date: Thu, 26 May 2016 11:40:18 +0200 Subject: [PATCH] Updated file-based example --- example/file-input/index.html | 2 +- example/file-input/index.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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();