diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2025-06-05 11:42:12 +0200 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2025-06-05 11:42:12 +0200 |
| commit | f1a2985897850321e0a9acb1b74bb41e016deb5c (patch) | |
| tree | bc0585a7bb629549bc3f7914027d62bb21bde30c /web/http/worker.mjs | |
| parent | 52c74a1c33ce12b93ec5830f5a6348d9578c7c6e (diff) | |
| download | nissy-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.mjs | 3 |
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" | |||
| 3 | const nissy = await Nissy(); | 3 | const nissy = await Nissy(); |
| 4 | 4 | ||
| 5 | const log = (cstr) => postMessage({ | 5 | const 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 | }); |
| 9 | nissy.setLogger(nissy.addFunction(log, "vp")); | 10 | nissy.setLogger(nissy.addFunction(log, "vp")); |
