message: Fix variable scopes
diff: @@ -66,13 +66,14 @@ import sdk from './index';
  * failed.
  */
  export function loadSession(opts) {
  - return new Promise.resolve().then(() => {
  - const fragmentQueryParams = opts.fragmentQueryParams || {};
  let enableGuest = opts.enableGuest || false;
  const guestHsUrl = opts.guestHsUrl;
  const guestIsUrl = opts.guestIsUrl;
  + const fragmentQueryParams = opts.fragmentQueryParams || {};
  const defaultDeviceDisplayName = opts.defaultDeviceDisplayName;
  + return new Promise.resolve().then(() => {
  +
  if (!guestHsUrl) {
  console.warn("Cannot enable guest access: can't determine HS URL to use");
  enableGuest = false;
  