forked from rDrama/rDrama
1
0
Fork 0

fix console error

master
Aevann 2023-08-03 10:05:24 +03:00
parent de67ecbecc
commit 2cf0ae1605
1 changed files with 2 additions and 0 deletions

View File

@ -179,6 +179,8 @@ document.addEventListener("click", function (e) {
if (element.tagName == "I")
element = element.parentElement
if (!element) return
if (element instanceof HTMLImageElement && (element.alt.startsWith('![](') || element.classList.contains('in-comment-image') || element.classList.contains('img'))) {
expandImage()
}