From bab26a4da2a2a0fdc88ec3af56909b12d822113a Mon Sep 17 00:00:00 2001 From: Ruben Beltran del Rio Date: Thu, 14 Sep 2023 11:00:18 +0200 Subject: Format and update docs --- extension/junction.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'extension/junction.js') 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({ -- cgit