prod/service-worker-28ddbc7ef7a575da0539a0f05f4bfdae.js
function genUrl(opts, path) {
  // If the host already has a path, then we need to have a path delimiter
  // Otherwise, the path delimiter is the empty string
  var pathDel = !opts.path ? '' : '/';

  // If the host already has a path, then we need to have a path delimiter
  // Otherwise, the path delimiter is the empty string
  return opts.protocol + '://' + opts.host +
         (opts.port ? (':' + opts.port) : '') +
         '/' + opts.path + pathDel + path;
}
function genUrl(opts, path) {
  // If the host already has a path, then we need to have a path delimiter
  // Otherwise, the path delimiter is the empty string
  var pathDel = !opts.path ? '' : '/';

  // If the host already has a path, then we need to have a path delimiter
  // Otherwise, the path delimiter is the empty string
  return opts.protocol + '://' + opts.host +
         (opts.port ? (':' + opts.port) : '') +
         '/' + opts.path + pathDel + path;
}
function genUrl ( opts , path ) { // If the host already has a path, then we need to have a path delimiter // Otherwise, the path delimiter is the empty string var pathDel = ! opts . path ? '' : '/' ; // If the host already has a path, then we need to have a path delimiter // Otherwise, the path delimiter is the empty string return opts . protocol + '://' + opts . host + ( opts . port ? ( ':' + opts . port ) : '' ) + '/' + opts . path + pathDel + path ; }
Generate a URL with the host data given by opts and the given path
Generate a URL with the host data given by opts and the given path