Skip to content

Commit

Permalink
fix: set connected tabPort in active state
Browse files Browse the repository at this point in the history
  • Loading branch information
RomanenkoStud committed Nov 30, 2023
1 parent 7d852b1 commit b7cdcff
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/kite-chat/src/kite-worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ function onTabConnected(e: MessageEvent) {
port.onmessage = onTabMessage;
port.onmessageerror = console.error;
tabPorts.add(port as unknown as KiteMessagePort);
onActiveTab(port as unknown as KiteMessagePort);
console.debug(WORKER_NAME, 'tab connected', tabPorts.size);
port.postMessage({
type: MsgType.CONNECTED,
Expand Down

0 comments on commit b7cdcff

Please sign in to comment.