mirror of
https://github.com/markedjs/marked
synced 2024-11-23 01:38:57 +00:00
clearTimeout first
This commit is contained in:
parent
431da38397
commit
64716578e6
@ -139,8 +139,8 @@ var markedTimeout = setTimeout(() => {
|
|||||||
}, timeoutLimit);
|
}, timeoutLimit);
|
||||||
|
|
||||||
markedWorker.onmessage = (e) => {
|
markedWorker.onmessage = (e) => {
|
||||||
var html = e.data;
|
|
||||||
clearTimeout(markedTimeout);
|
clearTimeout(markedTimeout);
|
||||||
|
var html = e.data;
|
||||||
console.log(html);
|
console.log(html);
|
||||||
markedWorker.terminate();
|
markedWorker.terminate();
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user