mirror of
https://github.com/schlagmichdoch/PairDrop.git
synced 2025-04-21 23:36:17 -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':
|
case 'ping':
|
||||||
this.send({ type: 'pong' });
|
this.send({ type: 'pong' });
|
||||||
break;
|
break;
|
||||||
case 'displayName':
|
case 'display-name':
|
||||||
Events.fire('displayName', msg);
|
Events.fire('display-name', msg);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
console.error('WS: unkown message type', msg);
|
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;
|
window.iOS = /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
|
||||||
|
|
||||||
// set display name
|
// set display name
|
||||||
Events.on('displayName', e => {
|
Events.on('display-name', e => {
|
||||||
$("displayName").textContent = "You are known as " + e.detail.message;
|
$('displayName').textContent = 'You are known as ' + e.detail.message;
|
||||||
});
|
});
|
||||||
|
|
||||||
class PeersUI {
|
class PeersUI {
|
||||||
|
|
|
@ -593,6 +593,7 @@ x-instructions {
|
||||||
opacity: 0.5;
|
opacity: 0.5;
|
||||||
transition: opacity 300ms;
|
transition: opacity 300ms;
|
||||||
z-index: -1;
|
z-index: -1;
|
||||||
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
x-instructions:before {
|
x-instructions:before {
|
||||||
|
|
|
@ -19,7 +19,7 @@ class SnapdropServer {
|
||||||
this._keepAlive(peer);
|
this._keepAlive(peer);
|
||||||
|
|
||||||
// send displayName
|
// send displayName
|
||||||
this._send(peer, { type: 'displayName', message: peer.name.displayName });
|
this._send(peer, { type: 'display-name', message: peer.name.displayName });
|
||||||
}
|
}
|
||||||
|
|
||||||
_onHeaders(headers, response) {
|
_onHeaders(headers, response) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue