Add missed message types

This commit is contained in:
hensm
2020-02-18 07:46:56 +00:00
parent 2eeaff4c15
commit a65a536960
4 changed files with 17 additions and 9 deletions

View File

@@ -4,7 +4,8 @@ import logger from "../../lib/logger";
import options from "../../lib/options";
import cast, { ensureInit } from "../../shim/export";
import { Message, Receiver } from "../../types";
import { Message } from "../../lib/messaging";
import { Receiver } from "../../types";
function getLocalAddress () {
@@ -35,7 +36,7 @@ function startMediaServer (filePath: string, port: number)
filePath: decodeURI(filePath)
, port
}
});
} as Message);
backgroundPort.addEventListener("message", function onMessage (ev) {
const message = ev.data as Message;