mirror of
https://github.com/schlagmichdoch/PairDrop.git
synced 2026-04-17 14:52:15 +00:00
show displayName on UI
This commit is contained in:
committed by
PaulSzymanski
parent
0c7abfbf1d
commit
e7c484f428
@@ -41,6 +41,9 @@ class ServerConnection {
|
||||
case 'ping':
|
||||
this.send({ type: 'pong' });
|
||||
break;
|
||||
case 'displayName':
|
||||
Events.fire('displayName', msg);
|
||||
break;
|
||||
default:
|
||||
console.error('WS: unkown message type', msg);
|
||||
}
|
||||
|
||||
@@ -491,7 +491,12 @@ class Snapdrop {
|
||||
const notifications = new Notifications();
|
||||
const networkStatusUI = new NetworkStatusUI();
|
||||
const webShareTargetUI = new WebShareTargetUI();
|
||||
})
|
||||
});
|
||||
|
||||
// set display name
|
||||
Events.on('displayName', e => {
|
||||
$("displayName").textContent = "[ " + e.detail.message + " ]";
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user