Improve caching of player marker name
This commit is contained in:
parent
76c5892c66
commit
a2942b6400
@ -88,7 +88,7 @@ export class PlayerIcon extends DivIcon {
|
||||
|
||||
this._playerName = document.createElement('span');
|
||||
this._playerName.className = 'player__name';
|
||||
this._playerName.innerHTML = player.name;
|
||||
this._playerName.innerHTML = this._currentName = player.name;
|
||||
|
||||
if (this.options.showSkinFace) {
|
||||
let size;
|
||||
|
Loading…
Reference in New Issue
Block a user