Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion docs/architecture/09-settings-ui.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ onboarded.
## The bridge

The page posts JSON with `window.chrome.webview.postMessage`; `HandleWebMessage` is the
authoritative message list, and `ui/src/bridge.js` mirrors it (request/reply pairs become
authoritative message list (its dispatch chain in `src/config_ui/main.cpp`; each longer message has
its own `On<Message>` handler just above it), and `ui/src/bridge.js` mirrors it (request/reply pairs become
promises). The host's JSON helpers live in the pure `src/config_ui/bridge_json.h`
(`tests/test_bridge_json.cpp`): `JsonField` reads one top-level string field and nothing else (the
page stringifies every value), and `JsonEscape` covers every control character: one unescaped
Expand Down
Loading
Loading