Skip to content

Commit

Permalink
update dist
Browse files Browse the repository at this point in the history
  • Loading branch information
antimatter15 committed Oct 8, 2016
1 parent 090d0c7 commit dbf43bb
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions dist/tesseract.js
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,13 @@ var TesseractWorker = function () {
var _this = this;

return this._delay(function (job) {
options = options || {};
options.lang = options.lang || 'eng';
if (typeof options === 'string') {
options = { lang: options };
} else {
options = options || {};
options.lang = options.lang || 'eng';
}

job._send('recognize', { image: image, options: options, workerOptions: _this.workerOptions });
});
}
Expand Down

0 comments on commit dbf43bb

Please sign in to comment.