From 681d08c1d50c3905e969d4295547d1e23c1df667 Mon Sep 17 00:00:00 2001 From: Kevin Kwok Date: Wed, 12 Oct 2016 04:06:42 -0400 Subject: [PATCH] fixing demo --- examples/file-input/demo.html | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/examples/file-input/demo.html b/examples/file-input/demo.html index 39a696e..4403e13 100644 --- a/examples/file-input/demo.html +++ b/examples/file-input/demo.html @@ -28,7 +28,9 @@ function progressUpdate(packet){ if(packet.status == 'done'){ var pre = document.createElement('pre') pre.appendChild(document.createTextNode(packet.data.text)) + line.innerHTML = '' line.appendChild(pre) + } log.insertBefore(line, log.firstChild) @@ -37,7 +39,7 @@ function progressUpdate(packet){ function recognizeFile(file){ document.querySelector("#log").innerHTML = '' - + Tesseract.recognize(file, { lang: document.querySelector('#langsel').value }) @@ -69,7 +71,7 @@ function recognizeFile(file){ - +