static/src/scene/route.js
/**
 * @fileoverview Route helpers designed for static scope only.
 *
 * TODO: can also be used by prod.
 */
@fileoverview Route helpers designed for static scope only.
TODO: can also be used by prod.
@fileoverview Route helpers designed for static scope only . TODO : can also be used by prod .
function guessProdUrl() {
  let params;
  try {
    params = new URLSearchParams(window.location.search);
  } catch (e) {
  }
  if (params && params.has('referrer')) {
    return params.get('referrer');
  }
  return document.referrer;
}
function guessProdUrl ( ) { let params ; try { params = new URLSearchParams ( window . location . search ) ; } catch ( e ) { } if ( params && params . has ( 'referrer' ) ) { return params . get ( 'referrer' ) ; } return document . referrer ; }
@fileoverview Route helpers designed for static scope only.
@fileoverview Route helpers designed for static scope only .
// Scenes are passed this param in referrer=. // ignore