Browse Source

merge

pull/12/head
Guillermo 8 years ago
parent
commit
4741312b3e
  1. 2
      src/browser/index.js

2
src/browser/index.js

@ -24,7 +24,6 @@ module.exports = function createTesseractWorker(url=location.href+'build/tessera
}) })
if(waitingCount == 0) worker.postMessage({jobId, action, args}) if(waitingCount == 0) worker.postMessage({jobId, action, args})
return { return {
then (f){ handlers[jobId].result = f; return this}, then (f){ handlers[jobId].result = f; return this},
error (f){ handlers[jobId].error = f; return this}, error (f){ handlers[jobId].error = f; return this},
@ -41,7 +40,6 @@ module.exports = function createTesseractWorker(url=location.href+'build/tessera
} }
function convertToImageData(image){ function convertToImageData(image){
if(image.match && image.match(/^https?:\/\//)) { if(image.match && image.match(/^https?:\/\//)) {
return function thunk(cb){ return function thunk(cb){
var img = new Image() var img = new Image()

Loading…
Cancel
Save