]> git.r.bdr.sh - rbdr/junction/blobdiff - extension/junction.js
Update build to use content script
[rbdr/junction] / extension / junction.js
index 16bc9f379c318f619e930fd57fb5454c5290df52..f3e1fb49c6b493baa66b5a9fe25a1993b1082662 100644 (file)
@@ -56,14 +56,16 @@ const internals = {
 
     internals.getRoot().browserAction.disable();
     const activeTabs = await internals.getActiveTabs();
-    const execution = await internals.getRoot().tabs.executeScript(activeTabs[0].id, {
-      file: '/content_script.js'
-    });
 
-    if (!execution[0]) {
-      internals.onDisconnect();
-    }
-  },
+      const execution = await internals.getRoot().tabs.executeScript(activeTabs[0].id, {
+        file: '/build/content_script.js'
+      });
+
+      if (!execution || !execution[0]) {
+        internals.onDisconnect();
+      }
+  }
+  ,
 
   hangUp() {