mirror of
https://github.com/hensm/fx_cast.git
synced 2026-06-11 01:59:58 +00:00
Unify receiver selector launching and allow switching to app media type
This commit is contained in:
@@ -156,15 +156,11 @@ export default new class ShimManager {
|
||||
|
||||
case "main:/selectReceiverBegin": {
|
||||
const contentTab = await browser.tabs.get(shim.contentTabId);
|
||||
const availableMediaTypes = getMediaTypesForPageUrl(
|
||||
contentTab.url);
|
||||
|
||||
try {
|
||||
const selection = await ReceiverSelectorManager
|
||||
.getSelection(
|
||||
ReceiverSelectorMediaType.App
|
||||
, availableMediaTypes
|
||||
, shim.requestedAppId);
|
||||
const selection =
|
||||
await ReceiverSelectorManager.getSelection(
|
||||
shim.contentTabId, shim.contentFrameId);
|
||||
|
||||
// Handle cancellation
|
||||
if (!selection) {
|
||||
|
||||
Reference in New Issue
Block a user