diff --git a/src/chrome/offscreen/helpers/initialize.ts b/src/chrome/offscreen/helpers/initialize.ts index 2a7fcda0..47e1c57d 100644 --- a/src/chrome/offscreen/helpers/initialize.ts +++ b/src/chrome/offscreen/helpers/initialize.ts @@ -19,12 +19,12 @@ export const initialize = (messageClient: MessageClient) => { }, sessionRouterData: () => { messageClient - .sendMessageAndWaitForConfirmation>( - createMessage.getSessionRouterData(), - ) - .andThen((data) => + .sendMessageAndWaitForConfirmation<{ + sessionRouter: Record + }>(createMessage.getSessionRouterData()) + .andThen(({ sessionRouter }) => messageClient.handleMessage( - createMessage.setSessionRouterData(data, 'offScreen'), + createMessage.setSessionRouterData(sessionRouter, 'offScreen'), ), ) },