Commit 69f955dd authored by Travis Fischer's avatar Travis Fischer

fix: minor improvement to nopecha init

parent 4e9ce998
...@@ -386,7 +386,9 @@ export async function initializeNopechaExtension( ...@@ -386,7 +386,9 @@ export async function initializeNopechaExtension(
await minimizePage(page) await minimizePage(page)
} }
await page.goto(`https://nopecha.com/setup#${nopechaKey}`) await page.goto(`https://nopecha.com/setup#${nopechaKey}`, {
waitUntil: 'networkidle0'
})
await delay(1000) await delay(1000)
try { try {
// find the nopecha extension ID // find the nopecha extension ID
...@@ -411,7 +413,7 @@ export async function initializeNopechaExtension( ...@@ -411,7 +413,7 @@ export async function initializeNopechaExtension(
if (extensionId) { if (extensionId) {
const extensionUrl = `chrome-extension://${extensionId}/popup.html` const extensionUrl = `chrome-extension://${extensionId}/popup.html`
await page.goto(extensionUrl, { waitUntil: 'networkidle2' }) await page.goto(extensionUrl, { waitUntil: 'networkidle0' })
const editKey = await page.waitForSelector('#edit_key .clickable') const editKey = await page.waitForSelector('#edit_key .clickable')
await editKey.click() await editKey.click()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment