aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuchen Pei <hi@ypei.me>2022-07-25 18:11:05 +1000
committerYuchen Pei <hi@ypei.me>2022-07-25 18:11:05 +1000
commit57cb7b93c5530b80b4e5c4c2cce77c6164d5cf03 (patch)
treec0a2e782b34575e51282e8586837a45b79092fb6
parentb1c24afb18fd461d4abb1de52de9051f4a49aa32 (diff)
updating fresh-browser script
-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"))));
})();