Skip to content

Commit

Permalink
ending slash in localTestingURL is optional, phetsims/aqua#90
Browse files Browse the repository at this point in the history
  • Loading branch information
zepumph committed May 19, 2020
1 parent 90f79ac commit 1d57d50
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions js/grunt/phet-io/generatePhetioAPI.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,12 @@

const puppeteer = require( 'puppeteer' );


/**
* @param {string} repo
* @param {string} localTestingURL - the browser url to access the root of phet repos
*/
module.exports = async ( repo, localTestingURL ) => {
assert( localTestingURL.endsWith( '/' ), 'localTestingURL should end in a forward slash' );
localTestingURL = localTestingURL.endsWith( '/' ) ? localTestingURL : `${localTestingURL}/`;

return new Promise( async ( resolve, reject ) => {

Expand Down

0 comments on commit 1d57d50

Please sign in to comment.