From 06f028bf5aefba7d93a7a00373ea820f4537bfd3 Mon Sep 17 00:00:00 2001 From: HampusM Date: Fri, 28 May 2021 17:27:29 +0200 Subject: Added a clone-dropdown & made multiple small frontend improvements --- src/frontend/util/worker.js | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 src/frontend/util/worker.js (limited to 'src/frontend/util') 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 -- cgit v1.2.3-18-g5258