Expose types via cast/media exports

This commit is contained in:
hensm
2019-03-19 19:16:02 +00:00
parent 894738889a
commit 7da84505b7
11 changed files with 161 additions and 165 deletions

View File

@@ -1,6 +1,6 @@
"use strict";
import cast from "./cast";
import * as cast from "./cast";
import { onMessage } from "./messageBridge";
@@ -35,8 +35,6 @@ 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") {