Skip to content

Commit

Permalink
refactor: update requestId to interactionId
Browse files Browse the repository at this point in the history
  • Loading branch information
xstelea committed Jan 27, 2023
1 parent e9578a6 commit 55c1172
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/chrome/chrome-dapp-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ export const ChromeDAppClient = () => {
}

const sendMessageEvent = (
requestId: string,
interactionId: string,
eventType: keyof typeof messageLifeCycleEvent
) =>
sendMessage({
requestId,
interactionId,
eventType,
})

Expand Down
2 changes: 1 addition & 1 deletion src/chrome/content.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ chromeDAppClient.messageListener((message) => {
.map(chrome.runtime.sendMessage)
.andThen(() =>
chromeDAppClient.sendMessageEvent(
message.requestId,
message.interactionId,
messageLifeCycleEvent.receivedByExtension
)
)
Expand Down

0 comments on commit 55c1172

Please sign in to comment.