Skip to content

Commit

Permalink
Fix cast receiver action listeners not being called
Browse files Browse the repository at this point in the history
  • Loading branch information
hensm committed Sep 12, 2022
1 parent f76468b commit e72f0a6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions ext/src/background/castManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -688,6 +688,14 @@ async function handleContentMessage(instance: CastInstance, message: Message) {
break;
}

instance.contentPort.postMessage({
subject: "cast:receiverAction",
data: {
receiver: createReceiver(selection.device),
action: ReceiverAction.CAST
}
});

const session = await createCastSession({
instance,
deviceId: selection.device.id,
Expand Down

0 comments on commit e72f0a6

Please sign in to comment.