Move all Google endpoint URLs to a separate module

This commit is contained in:
hensm
2019-06-14 19:27:15 +01:00
parent e53b220cfc
commit 2c1fb64680
6 changed files with 67 additions and 35 deletions

View File

@@ -2,6 +2,7 @@
import * as cast from "./cast";
import { CAST_FRAMEWORK_SCRIPT_URL } from "../endpoints";
import { loadScript } from "../lib/utils";
import { onMessage } from "./messageBridge";
@@ -12,12 +13,10 @@ if (!_window.chrome) {
_window.chrome = {};
}
// Create page-accessible API object
_window.chrome.cast = cast;
const CAST_FRAMEWORK_SCRIPT_URL =
"https://www.gstatic.com/cast/sdk/libs/sender/1.0/cast_framework.js";
let bridgeInfo: any;
let isFramework = false;