From cb6419203f92c148b9646acc3461efa9e7e6eebc Mon Sep 17 00:00:00 2001 From: Kevin Kwok Date: Fri, 7 Oct 2016 23:09:47 -0400 Subject: [PATCH] Fixing opts --- dist/worker.js | 1 + src/common/worker.js | 1 + 2 files changed, 2 insertions(+) diff --git a/dist/worker.js b/dist/worker.js index dd3f60b..4363c3e 100644 --- a/dist/worker.js +++ b/dist/worker.js @@ -12245,6 +12245,7 @@ function handleRecognize(req, res) { base.Init(null, lang); res.progress({ status: 'initialized with language' }); + var options = req.options; for (var option in options) { if (options.hasOwnProperty(option)) { base.SetVariable(option, options[option]); diff --git a/src/common/worker.js b/src/common/worker.js index ab9b1d7..b6e4a4f 100644 --- a/src/common/worker.js +++ b/src/common/worker.js @@ -91,6 +91,7 @@ function handleRecognize(req, res){ base.Init(null, lang) res.progress({ status: 'initialized with language' }) + var options = req.options; for (var option in options) { if (options.hasOwnProperty(option)) { base.SetVariable(option, options[option]);