]> git.r.bdr.sh - rbdr/junction/blobdiff - extension/junction.js
Update bundle identifier
[rbdr/junction] / extension / junction.js
index 776096927473e635738e8577f8988675b7e9645e..c3cb4e9db5d221846e6ecbad41dcda2855d088e5 100644 (file)
@@ -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({