diff --git a/js/grunt/phet-io/generatePhetioAPI.js b/js/grunt/phet-io/generatePhetioAPI.js index 88b3ad2cf..ced59c9ae 100644 --- a/js/grunt/phet-io/generatePhetioAPI.js +++ b/js/grunt/phet-io/generatePhetioAPI.js @@ -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 ) => {