diff --git a/src/root-authority.ts b/src/root-authority.ts index 1f8c5d1..9ef99d4 100644 --- a/src/root-authority.ts +++ b/src/root-authority.ts @@ -176,13 +176,11 @@ async function openCertificateInFirefox(firefoxPath: string): Promise { res.end(); }).listen(port); debug('certificate is hosted, starting firefox at hosted URL'); - await new Promise((resolve) => { - console.log(`Unable to automatically install SSL certificate - please follow the prompts at http://localhost:${ port } in Firefox to trust the root certificate`); - console.log('See https://github.com/davewasmer/devcert#how-it-works for more details'); - console.log('-- Press once you finish the Firefox prompts --'); - exec(`${ firefoxPath } http://localhost:${ port }`); - waitForUser(); - }); + console.log(`Unable to automatically install SSL certificate - please follow the prompts at http://localhost:${ port } in Firefox to trust the root certificate`); + console.log('See https://github.com/davewasmer/devcert#how-it-works for more details'); + console.log('-- Press once you finish the Firefox prompts --'); + exec(`${ firefoxPath } http://localhost:${ port }`); + await waitForUser(); } // Try to install certutil if it's not already available, and return the path to the executable