mirror of
https://github.com/hensm/fx_cast.git
synced 2026-06-08 08:39:59 +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);
|
||||
} catch (err) {
|
||||
logger.error("Failed to locate frame");
|
||||
reject();
|
||||
return;
|
||||
} catch {
|
||||
logger.error("Failed to locate frame, falling back to default available media types.");
|
||||
availableMediaTypes = ReceiverSelectorMediaType.File;
|
||||
}
|
||||
|
||||
// Enable app media type if initialized sender app is found
|
||||
|
||||
Reference in New Issue
Block a user