Skip to content

Commit

Permalink
Resolve after cleanup, see phetsims/perennial#268
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanolson committed Nov 24, 2022
1 parent 98bbd0e commit 496235b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion js/grunt/phet-io/generatePhetioAPI.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ module.exports = async ( repo, fromBuiltVersion = false ) => {
if ( msg.text().indexOf( '"phetioFullAPI": true,' ) >= 0 ) {

const fullAPI = msg.text();
await page.close();
await browser.close();
resolve( fullAPI );
}

Expand All @@ -91,6 +93,5 @@ module.exports = async ( repo, fromBuiltVersion = false ) => {
const url = `http://localhost:${port}/${repo}/${relativePath}?ea&brand=phet-io&phetioStandalone&phetioPrintAPI`;
page.goto( url ).catch( reject );
} );
await browser.close();
return result;
};

0 comments on commit 496235b

Please sign in to comment.