Skip to content

Commit ce7ddbd

Browse files
committed
docs: improve comment [skip ci]
1 parent ecb850e commit ce7ddbd

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

docs/content/1.guide/12.in-page-channel.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,8 @@ const panelChannel = connectPanelChannel<MyChannelProtocol>({
117117
})
118118

119119
const offFlash = panelChannel.on('flash', message => showFlash(message))
120-
panelChannel.emit('highlight', '.hero') // received by the page-script endpoint
120+
// defined and received by the page-script endpoint
121+
panelChannel.emit('highlight', '.hero')
121122
const size = await panelChannel.call('measure', '.hero')
122123
await panelChannel.call('reset')
123124

0 commit comments

Comments
 (0)