Initial commit

This commit is contained in:
hensm
2018-06-08 04:56:02 +01:00
commit d815fb7af0
70 changed files with 8370 additions and 0 deletions

18
ext/src/shim/index.js Executable file
View File

@@ -0,0 +1,18 @@
"use strict";
import cast from "./cast";
import media from "./media";
if (!window.chrome) {
window.chrome = {};
}
window.chrome.cast = cast;
window.chrome.cast.media = media;
// Call page's API loaded function if defined
const readyFunction = window.__onGCastApiAvailable;
console.log(readyFunction);
if (readyFunction && typeof readyFunction === "function") {
readyFunction(true);
}