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