aboutsummaryrefslogtreecommitdiff
path: root/src/frontend/util/worker.js
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2021-05-28 17:27:29 +0200
committerHampusM <hampus@hampusmat.com>2021-05-28 17:27:29 +0200
commit06f028bf5aefba7d93a7a00373ea820f4537bfd3 (patch)
treeed61bf00c5150d22c76d7226557bfb1e31228c99 /src/frontend/util/worker.js
parentbdfc5d2d092fdce8fb4149ae8acb86b63c14c642 (diff)
Added a clone-dropdown & made multiple small frontend improvements
Diffstat (limited to 'src/frontend/util/worker.js')
-rw-r--r--src/frontend/util/worker.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/frontend/util/worker.js b/src/frontend/util/worker.js
new file mode 100644
index 0000000..addb2b5
--- /dev/null
+++ b/src/frontend/util/worker.js
@@ -0,0 +1,6 @@
+onmessage = function(e)
+{
+ if(e.data.work === "sleep") {
+ setTimeout(() => { postMessage("done") }, e.data.time);
+ }
+} \ No newline at end of file