mirror of
https://github.com/hensm/fx_cast.git
synced 2026-06-12 10:39:57 +00:00
Add receiver selector fallback for invalid frame contexts
This commit is contained in:
@@ -89,10 +89,9 @@ async function getSelection (
|
|||||||
});
|
});
|
||||||
|
|
||||||
availableMediaTypes = getMediaTypesForPageUrl(url);
|
availableMediaTypes = getMediaTypesForPageUrl(url);
|
||||||
} catch (err) {
|
} catch {
|
||||||
logger.error("Failed to locate frame");
|
logger.error("Failed to locate frame, falling back to default available media types.");
|
||||||
reject();
|
availableMediaTypes = ReceiverSelectorMediaType.File;
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Enable app media type if initialized sender app is found
|
// Enable app media type if initialized sender app is found
|
||||||
|
|||||||
Reference in New Issue
Block a user