diff --git a/docs/USING_ADVANCED.md b/docs/USING_ADVANCED.md index 3bc4e32f74..c3797bcf30 100644 --- a/docs/USING_ADVANCED.md +++ b/docs/USING_ADVANCED.md @@ -136,7 +136,7 @@ var markedTimeout = setTimeout(() => { throw new Error('Marked took too long!'); }, timeoutLimit); -markedWorker.onmessage = function (html) => { +markedWorker.onmessage = (html) => { clearTimeout(markedTimeout); console.log(html); });