diff --git a/ext/src/shim/cast/index.ts b/ext/src/shim/cast/index.ts index 4b74797..3de3c0e 100755 --- a/ext/src/shim/cast/index.ts +++ b/ext/src/shim/cast/index.ts @@ -106,13 +106,13 @@ export function initialize ( , data: { appId: apiConfig.sessionRequest.appId } }); - apiConfig.receiverListener(receiverList.length - ? ReceiverAvailability.AVAILABLE - : ReceiverAvailability.UNAVAILABLE); - if (successCallback) { successCallback(); } + + apiConfig.receiverListener(receiverList.length + ? ReceiverAvailability.AVAILABLE + : ReceiverAvailability.UNAVAILABLE); } export function logMessage (message: string): void {