Fix shim regression

This commit is contained in:
hensm
2019-03-17 06:45:58 +00:00
parent 1df667fb25
commit 18061afa8e

View File

@@ -21,6 +21,8 @@ onMessage(message => {
case "shim:/initialized": {
const bridgeInfo = message.data;
cast.isAvailable = true;
// Call page's API loaded function if defined
const readyFunction = global.__onGCastApiAvailable;
if (readyFunction && typeof readyFunction === "function") {