mirror of
https://github.com/schlagmichdoch/PairDrop.git
synced 2026-04-21 22:54:53 +08:00
generate unique peer names
use unique-names-generator to generate peer names instead of relying on UA. This prevents confusion when there are multiple clients on the network with same UA.
This commit is contained in:
committed by
PaulSzymanski
parent
ff42ee1a3e
commit
0c7abfbf1d
@@ -111,11 +111,7 @@ class PeerUI {
|
||||
}
|
||||
|
||||
_name() {
|
||||
if (this._peer.name.model) {
|
||||
return this._peer.name.os + ' ' + this._peer.name.model;
|
||||
}
|
||||
this._peer.name.os = this._peer.name.os.replace('Mac OS', 'Mac');
|
||||
return this._peer.name.os + ' ' + this._peer.name.browser;
|
||||
return this._peer.name.displayName;
|
||||
}
|
||||
|
||||
_icon() {
|
||||
|
||||
Reference in New Issue
Block a user