import config from '../config/environment';

export function initialize() {
  window.Alcatraz.rootUrl = config.alcatrazClient.rootUrl;
}

export default {
  name: 'alcatraz-client',
  initialize: initialize
};

import config from '../config/environment';

export function initialize() {
  if (!window.Alcatraz) { return; };
  window.Alcatraz.rootUrl = config.alcatrazClient.rootUrl;
}

export default {
  name: 'alcatraz-client',
  initialize: initialize
};

Check to see if Alcatraz is defined on window before setting root_url
Check to see if Alcatraz is defined on window before setting root_url
