X-Git-Url: https://git.r.bdr.sh/rbdr/junction/blobdiff_plain/5685e249653cae8c2ba97c0c59c45e3221d8ffa2..30295bf26ceb753bda98b0808c98021dc2b5901b:/extension/junction.js?ds=inline diff --git a/extension/junction.js b/extension/junction.js index 7760969..c3cb4e9 100644 --- a/extension/junction.js +++ b/extension/junction.js @@ -72,14 +72,15 @@ const internals = { internals.injectedScript = true; }, ); - } else { - internals.getRoot().tabs.connect(activeTabs[0].id) - } - if (execution && !execution[0]) { - internals.onDisconnect(); + if (execution && !execution[0]) { + internals.onDisconnect(); + } + } else { + internals.getRoot().tabs.connect(activeTabs[0].id); } }, + hangUp() { internals.getRoot().browserAction.disable(); internals.port.postMessage({