aboutsummaryrefslogtreecommitdiff
path: root/fresh-browser.js
diff options
context:
space:
mode:
Diffstat (limited to 'fresh-browser.js')
-rw-r--r--fresh-browser.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/fresh-browser.js b/fresh-browser.js
index 8faf82b..0ff5509 100644
--- a/fresh-browser.js
+++ b/fresh-browser.js
@@ -24,6 +24,7 @@
* for manual testing.
* Usage:
* node ./fresh-browser.js [url]
+ * Without the optional [url], a tab with "inspect librejs" will open
*/
(function freshBrowser() {
@@ -36,5 +37,7 @@
).build()
.then(driver =>
driver.installAddon("./librejs.xpi", /*isTemporary=*/true)
- .then(process.argv[2] ? driver.get(process.argv[2]) : {}));
+ .then(process.argv[2] ? driver.get(process.argv[2]) :
+ driver.sleep(2000)
+ .then(_ => driver.get("about:devtools-toolbox?id=jid1-KtlZuoiikVfFew%40jetpack&type=extension"))));
})();