don't create 2 sessions in sixpack

This commit is contained in:
Henry Oswald 2015-11-17 16:16:37 +00:00
parent 5a9174b1de
commit 3836142cee

View file

@ -55,7 +55,6 @@
if (_clientId = $cookies[_cookiePrefix + 'clientId']) {
_session = new sp.Session({client_id:_clientId, base_url:_opts.baseUrl});
} else {
_session = new sp.Session({client_id:undefined, base_url:_opts.baseUrl});
_session = new sp.Session({client_id:_opts.client_id, base_url:_opts.baseUrl});
$cookies[_cookiePrefix + 'clientId'] = _clientId = _session.client_id;
}