Skip to content

Commit

Permalink
feat(worker/respec-worker): error recovery if code parsing fails
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoscaceres committed Feb 1, 2017
1 parent 2efcf03 commit c1d0813
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion worker/respec-worker.js
Expand Up @@ -26,7 +26,7 @@ self.addEventListener("message", function(e) {
} catch (err) {
console.error("Could not transform some code?", err);
// Post back the original unhighlighted code.
const fallbackData = Object.assign({}, e.data, {value: e.data.code});
const fallbackData = Object.assign({}, e.data, { value: e.data.code });
self.postMessage(data);
}
}
Expand Down

0 comments on commit c1d0813

Please sign in to comment.