mirror of
https://github.com/hensm/fx_cast.git
synced 2026-06-10 01:29:58 +00:00
Move cast API code to cast/sdk/ and create wrapper class
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
"use strict";
|
||||
|
||||
import * as cast from "./api";
|
||||
import { Message } from "../messaging";
|
||||
|
||||
import { BridgeInfo } from "../lib/bridge";
|
||||
@@ -12,6 +11,8 @@ import {
|
||||
sendMessage
|
||||
} from "./eventMessageChannel";
|
||||
|
||||
import CastSDK from "./sdk";
|
||||
|
||||
let initializedBridgeInfo: BridgeInfo;
|
||||
let initializedBackgroundPort: MessagePort;
|
||||
|
||||
@@ -103,4 +104,4 @@ export function ensureInit(): Promise<TypedMessagePort<Message>> {
|
||||
});
|
||||
}
|
||||
|
||||
export default cast;
|
||||
export default new CastSDK();
|
||||
|
||||
Reference in New Issue
Block a user