From 57cb7b93c5530b80b4e5c4c2cce77c6164d5cf03 Mon Sep 17 00:00:00 2001 From: Yuchen Pei Date: Mon, 25 Jul 2022 18:11:05 +1000 Subject: updating fresh-browser script --- fresh-browser.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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")))); })(); -- cgit v1.2.3