Skip to content

Commit

Permalink
Fixed broken reactions selector after chat clear
Browse files Browse the repository at this point in the history
  • Loading branch information
Ri0n committed Jul 7, 2024
1 parent 5be18ee commit 3863763
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion themes/chatview/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,6 @@ function initPsiTheme() {
const em = rs.appendChild(document.createElement("em"));
em.textContent = emoji;
});
document.body.appendChild(rs);

var selector = this;
rs.addEventListener("click", function (event) {
Expand All @@ -411,6 +410,7 @@ function initPsiTheme() {
});

this.show = function(messageId, nearEl, scrollEl) {
document.body.appendChild(rs);
this.currentMessage = messageId;
const nbr = nearEl.getBoundingClientRect();
rs.style.left = "0px";
Expand Down

0 comments on commit 3863763

Please sign in to comment.