Improve caching of player marker name

This commit is contained in:
James Lyne 2021-01-06 00:44:11 +00:00
parent 76c5892c66
commit a2942b6400

View File

@ -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;