Skip to content

Commit 993c3f3

Browse files
committed
docs: reword
1 parent a3bea6c commit 993c3f3

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,13 @@ import type { InPageChannelProtocol } from 'devframe/in-page-channel'
3737
export const MY_CHANNEL = 'devframes:plugin:my-tool'
3838

3939
export interface MyChannelProtocol extends InPageChannelProtocol {
40-
pageScript: { // functions and events received by the page script
40+
// implemented by the page script, callable by panels
41+
pageScript: {
4142
highlight: (selector: string) => void
4243
measure: (selector: string) => { width: number, height: number }
4344
}
44-
panel: { // functions and events received by panels
45+
// implemented by panels, callable by the page script
46+
panel: {
4547
flash: (message: string) => void
4648
}
4749
sharedStates: {

0 commit comments

Comments
 (0)