mirror of
https://github.com/hensm/fx_cast.git
synced 2026-06-12 10:39:57 +00:00
Fix wrongly passing default media app ID to receiver selectors
This commit is contained in:
@@ -56,7 +56,7 @@ export default class PopupReceiverSelector extends ReceiverSelector {
|
||||
receivers: Receiver[]
|
||||
, defaultMediaType: ReceiverSelectorMediaType
|
||||
, availableMediaTypes: ReceiverSelectorMediaType
|
||||
, requestedAppId: string): Promise<void> {
|
||||
, requestedAppId?: string): Promise<void> {
|
||||
|
||||
this.requestedAppId = requestedAppId;
|
||||
|
||||
@@ -145,8 +145,7 @@ export default class PopupReceiverSelector extends ReceiverSelector {
|
||||
this.messagePortDisconnected = true;
|
||||
});
|
||||
|
||||
if (!this.requestedAppId
|
||||
|| !this.receivers
|
||||
if (!this.receivers
|
||||
|| !this.defaultMediaType
|
||||
|| !this.availableMediaTypes) {
|
||||
throw logger.error("Popup receiver data not found.");
|
||||
|
||||
Reference in New Issue
Block a user