diff --git a/js/viewer/ClientView.js b/js/viewer/ClientView.js index c68baf6..d8814d1 100644 --- a/js/viewer/ClientView.js +++ b/js/viewer/ClientView.js @@ -129,7 +129,7 @@ export default class ClientView extends View { this.#element.classList.add("client"); this.#element.classList.toggle("regular_client", this.#client.getType() === 0); this.#element.classList.toggle("has_avatar", this.#client.getAvatarUrl() !== null); - this.#element.style.setProperty("--avatar", `url("${this.#client.getAvatarUrl()}")`); + if(this.#client.getAvatarUrl() !== null) this.#element.style.setProperty("--avatar", `url("${this.#client.getAvatarUrl()}")`); if(this.#client.isLocalClient()) this.#element.classList.add("self"); for(const status of CLIENT_STATUSES) {