mirror of
https://github.com/hensm/fx_cast.git
synced 2026-06-13 11:00:01 +00:00
Fix shim regression
This commit is contained in:
@@ -21,6 +21,8 @@ onMessage(message => {
|
|||||||
case "shim:/initialized": {
|
case "shim:/initialized": {
|
||||||
const bridgeInfo = message.data;
|
const bridgeInfo = message.data;
|
||||||
|
|
||||||
|
cast.isAvailable = true;
|
||||||
|
|
||||||
// Call page's API loaded function if defined
|
// Call page's API loaded function if defined
|
||||||
const readyFunction = global.__onGCastApiAvailable;
|
const readyFunction = global.__onGCastApiAvailable;
|
||||||
if (readyFunction && typeof readyFunction === "function") {
|
if (readyFunction && typeof readyFunction === "function") {
|
||||||
|
|||||||
Reference in New Issue
Block a user