aboutsummaryrefslogtreecommitdiff
path: root/web/http/worker.mjs
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2025-06-05 11:42:12 +0200
committerSebastiano Tronto <sebastiano@tronto.net>2025-06-05 11:42:12 +0200
commitf1a2985897850321e0a9acb1b74bb41e016deb5c (patch)
treebc0585a7bb629549bc3f7914027d62bb21bde30c /web/http/worker.mjs
parent52c74a1c33ce12b93ec5830f5a6348d9578c7c6e (diff)
downloadnissy-core-f1a2985897850321e0a9acb1b74bb41e016deb5c.tar.gz
nissy-core-f1a2985897850321e0a9acb1b74bb41e016deb5c.zip
Added debug mode to web build and fixed a couple of bugs
Diffstat (limited to 'web/http/worker.mjs')
-rw-r--r--web/http/worker.mjs3
1 files changed, 2 insertions, 1 deletions
diff --git a/web/http/worker.mjs b/web/http/worker.mjs
index 0c1acb9..b988bdd 100644
--- a/web/http/worker.mjs
+++ b/web/http/worker.mjs
@@ -3,7 +3,8 @@ import Nissy from "./nissy_web_module.mjs"
3const nissy = await Nissy(); 3const nissy = await Nissy();
4 4
5const log = (cstr) => postMessage({ 5const log = (cstr) => postMessage({
6 command: "log", id: -1, 6 command: "log",
7 id: -1,
7 object: nissy.UTF8ToString(cstr) 8 object: nissy.UTF8ToString(cstr)
8}); 9});
9nissy.setLogger(nissy.addFunction(log, "vp")); 10nissy.setLogger(nissy.addFunction(log, "vp"));

Generated with cgit - Back to sebastiano.tronto.net