export default (() => { // var port = chrome.runtime.connect({ name: "newlife" }); // port.postMessage({ joke: "Knock knock" }); // port.onMessage.addListener(function (msg : any) { // console.log("Message from Newlife extension: ", msg) // // if (msg.question === "Who's there?") // // port.postMessage({ answer: "Madame" }); // // else if (msg.question === "Madame who?") // // port.postMessage({ answer: "Madame... Bovary" }); // }); // return { // sendMessage: (msg: any) => { // port.postMessage(msg) // } // }; return {}; })();