diff options
Diffstat (limited to 'src/frontend/util')
-rw-r--r-- | src/frontend/util/worker.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/frontend/util/worker.js b/src/frontend/util/worker.js index addb2b5..e50743a 100644 --- a/src/frontend/util/worker.js +++ b/src/frontend/util/worker.js @@ -1,6 +1,6 @@ onmessage = function(e) { if(e.data.work === "sleep") { - setTimeout(() => { postMessage("done") }, e.data.time); + setTimeout(() => postMessage("done"), e.data.time); } -}
\ No newline at end of file +};
\ No newline at end of file |