Skip to content

Commit b05f009

Browse files
posvaCopilot
andauthored
Update channelMethod to use template string for namespace
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent e141e51 commit b05f009

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/devframe/src/in-page-channel/internal.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,9 +158,9 @@ export function deserializeResult(codec: InPageChannelSerialization, result: unk
158158
return codec.deserialize && result !== undefined ? codec.deserialize(result) : result
159159
}
160160

161-
/** Keep user functions, user events, and internal methods in separate wire namespaces. */
162161
export function channelMethod(kind: 'function' | 'event', name: string): string {
163-
return JSON.stringify([kind, name])
162+
// Keep user functions, user events, and internal methods in separate wire namespaces.
163+
return `devframe:in-page:${kind}:${name}`
164164
}
165165

166166
/**

0 commit comments

Comments
 (0)