Skip to content

Commit

Permalink
修复于LiteLoaderQQNT-Markdown兼容性问题
Browse files Browse the repository at this point in the history
  • Loading branch information
jhqwqmc committed May 26, 2024
1 parent ad4036f commit a547f37
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/render_modules/qContextMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -230,8 +230,8 @@ function addEventqContextMenu() {
const userUid = msgRecord?.senderUid;
const fontFamily = getComputedStyle(messageEl).getPropertyValue("font-family");
const msgEl = messageEl.querySelector(".message-content__wrapper .text-element");
const width = msgEl.offsetWidth;
const height = msgEl.offsetHeight;
const width = msgEl ? msgEl.offsetWidth : messageEl.offsetWidth;
const height = msgEl ? msgEl.offsetHeight : messageEl.offsetHeight;
msgSticker = {
userName,
userUid,
Expand Down

0 comments on commit a547f37

Please sign in to comment.