"use strict"; import { CAST_LOADER_SCRIPT_URL , CAST_SCRIPT_URLS } from "../lib/endpoints"; const _window = (window.wrappedJSObject as any); _window.chrome = cloneInto({}, window); /** * YouTube won't load the cast SDK unless it thinks the * presentation API exists. */ if (window.location.host === "www.youtube.com") { _window.navigator.presentation = cloneInto({}, window); } /** * Replace the src property setter on