Skip to content

Commit fe623c6

Browse files
committed
docs: reword
1 parent 372e06c commit fe623c6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/content/8.references/5.browser-api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ The browser-only endpoint methods of the [in-page channel](/guide/in-page-channe
5252
| Method or property | Page-script endpoint | Panel endpoint |
5353
|--------------------|-------------|-------|
5454
| `emit(name, ...args)` | Fans an event out to every connected panel. | Sends an event to the page script, buffering while connecting. |
55-
| `on(name, listener)` | Subscribes to events emitted by a panel. | Subscribes to events emitted by the page script. Returns an unsubscribe function. |
55+
| `on(name, listener)` | Subscribes to events emitted by a panel. Returns an unsubscribe function. | Subscribes to events emitted by the page script. Returns an unsubscribe function. |
5656
| `call(name, ...args)` | Available through a specific `PanelPeer`. | Calls a page-script function and awaits its result. |
5757
| `events` | Local `panel:connected` / `panel:disconnected` lifecycle events. | Local `status:updated` lifecycle event. |
5858
| `sharedState` | Owns the authoritative state. | Mirrors the page-script state. |

0 commit comments

Comments
 (0)