From 55c11729f534bdb59faa901b27401adbe88e0574 Mon Sep 17 00:00:00 2001 From: Alex Stelea Date: Fri, 27 Jan 2023 11:00:19 +0100 Subject: [PATCH] refactor: update requestId to interactionId --- src/chrome/chrome-dapp-client.ts | 4 ++-- src/chrome/content.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/chrome/chrome-dapp-client.ts b/src/chrome/chrome-dapp-client.ts index 1f20623c..114b594e 100644 --- a/src/chrome/chrome-dapp-client.ts +++ b/src/chrome/chrome-dapp-client.ts @@ -20,11 +20,11 @@ export const ChromeDAppClient = () => { } const sendMessageEvent = ( - requestId: string, + interactionId: string, eventType: keyof typeof messageLifeCycleEvent ) => sendMessage({ - requestId, + interactionId, eventType, }) diff --git a/src/chrome/content.ts b/src/chrome/content.ts index b5151057..0e829c5c 100644 --- a/src/chrome/content.ts +++ b/src/chrome/content.ts @@ -19,7 +19,7 @@ chromeDAppClient.messageListener((message) => { .map(chrome.runtime.sendMessage) .andThen(() => chromeDAppClient.sendMessageEvent( - message.requestId, + message.interactionId, messageLifeCycleEvent.receivedByExtension ) )