Additional fixes

This commit is contained in:
Tamius Han 2020-05-17 02:30:16 +02:00
parent 3708b99186
commit fc8d011758

View File

@ -187,8 +187,9 @@ class PlayerData {
} }
unmarkPlayer() { unmarkPlayer() {
this.logger.log('info', 'debug', "[PlayerData::unmarkPlayer] unmarking player!") this.logger.log('info', 'debug', "[PlayerData::unmarkPlayer] unmarking player!", {playerIdElement: this.playerIdElement});
if (this.playerIdElement) { if (this.playerIdElement) {
this.playerIdElement.innerHTML = '';
this.playerIdElement.remove(); this.playerIdElement.remove();
} }
this.playerIdElement = undefined; this.playerIdElement = undefined;