The previous commit read toggleState.mode before it was declared (send-time site near line 632) and outside its closure (assistant finalize site near line 3426). Both threw ReferenceError / TDZ on first send, which crashed the chat send + render pipeline. Read fresh via Storage.loadToggleState() at each site, defaulting to 'chat' on any error. Mode-tag rendering otherwise unchanged. |
||
|---|---|---|
| .. | ||
| fonts | ||
| js | ||
| lib | ||
| app.js | ||
| index.html | ||
| login.html | ||
| manifest.json | ||
| style.css | ||
| sw.js | ||