diff options
author | HampusM <hampus@hampusmat.com> | 2021-05-28 17:27:29 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2021-05-28 17:27:29 +0200 |
commit | 06f028bf5aefba7d93a7a00373ea820f4537bfd3 (patch) | |
tree | ed61bf00c5150d22c76d7226557bfb1e31228c99 /src/frontend/util | |
parent | bdfc5d2d092fdce8fb4149ae8acb86b63c14c642 (diff) |
Added a clone-dropdown & made multiple small frontend improvements
Diffstat (limited to 'src/frontend/util')
-rw-r--r-- | src/frontend/util/worker.js | 6 |
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 |