document.addEventListener 'keydown', (e) ->
return true unless e.altKey and e.keyCode is 69
oReq = new XMLHttpRequest()
oReq.addEventListener 'load', ->
response = JSON.parse(@responseText)
out = '
'
out += '
Session list
'
if response.sessions.length is 0
out += "No current session for user #{response.user}"
else
out += '
'
for session in response.sessions
out += "- #{session}
"
out += '
'
out += '
'
popup.open out
oReq.open("GET", "/sessions/list.json")
oReq.send()
cancel e