src/service/extension-location.js
/**
 * Calculate script url for an entry point.
 * If `opt_rtv` is true, returns the URL matching the current RTV.
 * @param {!Location} location The window's location
 * @param {string} entryPoint
 * @param {boolean=} isLocalDev
 * @param {boolean=} opt_rtv
 * @return {string}
 */
Calculate script url for an entry point.
If `opt_rtv` is true, returns the URL matching the current RTV.
Calculate script url for an entry point . If ` opt_rtv ` is true returns the URL matching the current RTV .
function calculateEntryPointScriptUrl(
    location, entryPoint, isLocalDev, opt_rtv) {
  const base = calculateScriptBaseUrl(location, isLocalDev);
  if (opt_rtv) {
    return `${base}/rtv/${getMode().rtvVersion}/${entryPoint}.js`;
  }
  return `${base}/${entryPoint}.js`;
}
function calculateEntryPointScriptUrl ( location , entryPoint , isLocalDev , opt_rtv ) { const base = calculateScriptBaseUrl ( location , isLocalDev ) ; if ( opt_rtv ) { return ` ${ base } ${ getMode ( ) . rtvVersion } ${ entryPoint } ` ; } return ` ${ base } ${ entryPoint } ` ; }
Calculate script url for an entry point.
Calculate script url for an entry point .