X-Git-Url: https://git.r.bdr.sh/rbdr/junction/blobdiff_plain/5685e249653cae8c2ba97c0c59c45e3221d8ffa2..5d2c4ecb44233569a516dde301a02d44098ec15d:/extension/junction.js?ds=sidebyside 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({