mirror of
https://github.com/schlagmichdoch/PairDrop.git
synced 2025-04-24 16:56:16 -04:00
Cleanup
This commit is contained in:
parent
612d8cf1ea
commit
85dedf03ce
4 changed files with 6 additions and 5 deletions
|
@ -41,8 +41,8 @@ class ServerConnection {
|
|||
case 'ping':
|
||||
this.send({ type: 'pong' });
|
||||
break;
|
||||
case 'displayName':
|
||||
Events.fire('displayName', msg);
|
||||
case 'display-name':
|
||||
Events.fire('display-name', msg);
|
||||
break;
|
||||
default:
|
||||
console.error('WS: unkown message type', msg);
|
||||
|
|
|
@ -6,8 +6,8 @@ window.isProductionEnvironment = !window.location.host.startsWith('localhost');
|
|||
window.iOS = /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
|
||||
|
||||
// set display name
|
||||
Events.on('displayName', e => {
|
||||
$("displayName").textContent = "You are known as " + e.detail.message;
|
||||
Events.on('display-name', e => {
|
||||
$('displayName').textContent = 'You are known as ' + e.detail.message;
|
||||
});
|
||||
|
||||
class PeersUI {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue