X-Git-Url: https://git.r.bdr.sh/rbdr/junction/blobdiff_plain/4757c4616d5d7106cd023f06e5e5ba04d01bbb07..refs/heads/rbdr-content-script:/extension/junction.js?ds=sidebyside diff --git a/extension/junction.js b/extension/junction.js index 16bc9f3..f3e1fb4 100644 --- a/extension/junction.js +++ b/extension/junction.js @@ -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() {