|
|
@ -270,8 +270,14 @@ $(document).ready(function () { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var usrSession = localStorage.getItem(userId); |
|
|
|
var usrSession = localStorage.getItem(userId); |
|
|
|
|
|
|
|
if (! usrSession) { |
|
|
|
|
|
|
|
var user_session = lightdm.get_user_session(userId); |
|
|
|
|
|
|
|
usrSession = user_session ? user_session : lightdm.get_default_session(); |
|
|
|
|
|
|
|
localStorage.setItem(userId, usrSession); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
log("usrSession: " + usrSession); |
|
|
|
log("usrSession: " + usrSession); |
|
|
|
|
|
|
|
|
|
|
|
var usrSessionEl = "[data-session-id=" + usrSession + "]"; |
|
|
|
var usrSessionEl = "[data-session-id=" + usrSession + "]"; |
|
|
|
var usrSessionName = $(usrSessionEl).html(); |
|
|
|
var usrSessionName = $(usrSessionEl).html(); |
|
|
|
log("usrSessionName: " + usrSessionName); |
|
|
|
log("usrSessionName: " + usrSessionName); |
|
|
|