Highligting for Recipe now working. Discovered bug when highlighting on a test case

This commit is contained in:
d98762625 2019-02-08 14:28:53 +00:00
parent 9af5e40071
commit 58a8af20a6
3 changed files with 45 additions and 28 deletions

View file

@ -157,8 +157,8 @@ async function getDishAs(data) {
* @param {number} pos.start - The start offset.
* @param {number} pos.end - The end offset.
*/
function calculateHighlights(recipeConfig, direction, pos) {
pos = self.chef.calculateHighlights(recipeConfig, direction, pos);
async function calculateHighlights(recipeConfig, direction, pos) {
pos = await self.chef.calculateHighlights(recipeConfig, direction, pos);
self.postMessage({
action: "highlightsCalculated",