mirror of
https://github.com/hensm/fx_cast.git
synced 2026-06-11 10:09:59 +00:00
Switch to eslint and fix issues
This commit is contained in:
@@ -21,7 +21,7 @@ let initializedBackgroundPort: MessagePort;
|
||||
* for and emits these messages, and changing that behavior
|
||||
* is too messy.
|
||||
*/
|
||||
export function ensureInit (): Promise<TypedMessagePort<Message>> {
|
||||
export function ensureInit(): Promise<TypedMessagePort<Message>> {
|
||||
return new Promise(async (resolve, reject) => {
|
||||
|
||||
// If already initialized, just return existing bridge info
|
||||
@@ -88,7 +88,7 @@ export function ensureInit (): Promise<TypedMessagePort<Message>> {
|
||||
onMessage(handleIncomingMessageToShim);
|
||||
}
|
||||
|
||||
function handleIncomingMessageToShim (message: Message) {
|
||||
function handleIncomingMessageToShim(message: Message) {
|
||||
switch (message.subject) {
|
||||
case "shim:initialized": {
|
||||
initializedBridgeInfo = message.data;
|
||||
|
||||
Reference in New Issue
Block a user