Cleanup ShimManager listeners

This commit is contained in:
hensm
2021-04-26 07:53:35 +01:00
parent 8256c9aaba
commit 4cc9b2dd6e
2 changed files with 25 additions and 35 deletions

View File

@@ -175,7 +175,6 @@ async function init() {
}
const selection = await ReceiverSelectorManager.getSelection(tab.id);
if (selection) {
loadSender({
tabId: tab.id
@@ -184,18 +183,6 @@ async function init() {
});
}
});
/**
* When a message port connection with the name "shim" is
* established, pass it to createShim to handle the setup
* and maintenance.
*/
messaging.onConnect.addListener(async port => {
if (port.name === "shim") {
ShimManager.createShim(port);
}
});
}
init();