mirror of
https://github.com/YunoHost-Apps/movim_ynh.git
synced 2024-09-03 19:46:19 +02:00
17 lines
370 B
JavaScript
17 lines
370 B
JavaScript
var AccountNext = {
|
|
host : '',
|
|
setHost : function(host) {
|
|
this.host = host;
|
|
},
|
|
setUsername : function(user) {
|
|
document.querySelector('#username').innerHTML = user + '@' + this.host;
|
|
}
|
|
}
|
|
|
|
function setUsername(user) {
|
|
AccountNext.setUsername(user);
|
|
}
|
|
|
|
MovimWebsocket.attach(function() {
|
|
Notification.current('accountnext');
|
|
});
|