aboutsummaryrefslogtreecommitdiff
path: root/src/frontend/util
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2021-05-28 18:52:56 +0200
committerHampusM <hampus@hampusmat.com>2021-05-28 18:52:56 +0200
commit5ee8a02ff03200ef9d9e1639242f93c9be930b04 (patch)
treee4d6dc97ea9ff3abc40368f24207f1ee06c3e28b /src/frontend/util
parent06f028bf5aefba7d93a7a00373ea820f4537bfd3 (diff)
Cleaned up & added a couple of Eslint rules
Diffstat (limited to 'src/frontend/util')
-rw-r--r--src/frontend/util/worker.js4
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