From 5ee8a02ff03200ef9d9e1639242f93c9be930b04 Mon Sep 17 00:00:00 2001 From: HampusM Date: Fri, 28 May 2021 18:52:56 +0200 Subject: Cleaned up & added a couple of Eslint rules --- src/frontend/util/worker.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/frontend/util/worker.js') 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 -- cgit v1.2.3-18-g5258