require('xhr');
require('custom-event-polyfill');

window._session = {};

window.updateSession = function (session) {
    window._session = session;
    var sessionEvent = new CustomEvent('session', session);
    window.dispatchEvent(sessionEvent);
};

// @todo Get the session from an API
window.updateSession(require('./session.json'));

require('xhr');
require('custom-event-polyfill');

window._session = {};

window.updateSession = function (session) {
    window._session = session;
    var sessionEvent = new CustomEvent('session', session);
    window.dispatchEvent(sessionEvent);
};

// @todo Get the session from an API
window.updateSession({});

Initialize with logged out state
Initialize with logged out state
