mirror of
https://github.com/hensm/fx_cast.git
synced 2026-06-11 10:09:59 +00:00
Move CastManager to cast/
This commit is contained in:
@@ -8,7 +8,7 @@ import bridge, { BridgeInfo } from "../lib/bridge";
|
|||||||
|
|
||||||
import { RemoteMatchPattern } from "../lib/matchPattern";
|
import { RemoteMatchPattern } from "../lib/matchPattern";
|
||||||
|
|
||||||
import CastManager from "./CastManager";
|
import CastManager from "../cast/CastManager";
|
||||||
import receiverDevices from "./receiverDevices";
|
import receiverDevices from "./receiverDevices";
|
||||||
import ReceiverSelectorManager from "./receiverSelector/ReceiverSelectorManager";
|
import ReceiverSelectorManager from "./receiverSelector/ReceiverSelectorManager";
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
import options from "../../lib/options";
|
import options from "../../lib/options";
|
||||||
import logger from "../../lib/logger";
|
import logger from "../../lib/logger";
|
||||||
|
|
||||||
import CastManager from "../CastManager";
|
import CastManager from "../../cast/CastManager";
|
||||||
import receiverDevices from "../receiverDevices";
|
import receiverDevices from "../receiverDevices";
|
||||||
|
|
||||||
import { getMediaTypesForPageUrl } from "../../lib/utils";
|
import { getMediaTypesForPageUrl } from "../../lib/utils";
|
||||||
|
|||||||
@@ -9,11 +9,11 @@ import options from "../lib/options";
|
|||||||
import {
|
import {
|
||||||
ReceiverSelectionActionType,
|
ReceiverSelectionActionType,
|
||||||
ReceiverSelectorMediaType
|
ReceiverSelectorMediaType
|
||||||
} from "./receiverSelector";
|
} from "../background/receiverSelector";
|
||||||
|
|
||||||
import ReceiverSelectorManager from "./receiverSelector/ReceiverSelectorManager";
|
import ReceiverSelectorManager from "../background/receiverSelector/ReceiverSelectorManager";
|
||||||
|
|
||||||
import receiverDevices from "./receiverDevices";
|
import receiverDevices from "../background/receiverDevices";
|
||||||
|
|
||||||
type AnyPort = Port | MessagePort;
|
type AnyPort = Port | MessagePort;
|
||||||
|
|
||||||
@@ -45,9 +45,7 @@ export function ensureInit(): Promise<TypedMessagePort<Message>> {
|
|||||||
* URL.
|
* URL.
|
||||||
*/
|
*/
|
||||||
if (window.location.protocol === "moz-extension:") {
|
if (window.location.protocol === "moz-extension:") {
|
||||||
const { default: CastManager } = await import(
|
const { default: CastManager } = await import("./CastManager");
|
||||||
"../background/CastManager"
|
|
||||||
);
|
|
||||||
|
|
||||||
// port2 will post bridge messages to port 1
|
// port2 will post bridge messages to port 1
|
||||||
await CastManager.init();
|
await CastManager.init();
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ import {
|
|||||||
ReceiverSelectorMediaType
|
ReceiverSelectorMediaType
|
||||||
} from "../background/receiverSelector";
|
} from "../background/receiverSelector";
|
||||||
|
|
||||||
import CastManager from "../background/CastManager";
|
import CastManager from "../cast/CastManager";
|
||||||
|
|
||||||
interface LoadSenderOptions {
|
interface LoadSenderOptions {
|
||||||
tabId: number;
|
tabId: number;
|
||||||
|
|||||||
Reference in New Issue
Block a user