| Index: automation/build.js |
| diff --git a/ext/devtools.js b/automation/build.js |
| similarity index 77% |
| copy from ext/devtools.js |
| copy to automation/build.js |
| index 3f743e7fdce7d2c2dc01ad1d38a5183012fc89ce..983f065b25189d2d3137fc6cc283d05754384dd7 100644 |
| --- a/ext/devtools.js |
| +++ b/automation/build.js |
| @@ -15,12 +15,12 @@ |
| * along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>. |
| */ |
| +/* eslint-env node */ |
|
Sebastian Noack
2018/10/04 19:56:52
If we put these scripts into a separate directory
tlucas
2018/10/15 10:26:19
Done.
|
| + |
| "use strict"; |
| -{ |
| - let inspectedTabId = browser.devtools.inspectedWindow.tabId; |
| - let port = browser.runtime.connect({name: "devtools-" + inspectedTabId}); |
| +const path = require("path"); |
| + |
| +let platform = process.argv[2]; |
|
Sebastian Noack
2018/10/04 19:56:52
This temporary variable seems unnecessary. You cou
tlucas
2018/10/15 10:26:19
Not relevant anymore.
|
| - ext.onMessage = port.onMessage; |
| - ext.devtools = browser.devtools; |
| -} |
| +require(path.resolve(`automation/builds/${platform}`)); |