mirror of
https://github.com/hensm/fx_cast.git
synced 2026-06-12 02:29:59 +00:00
Move all Google endpoint URLs to a separate module
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user