mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-09 18:44:16 +00:00
check if contains image-wrapper
This commit is contained in:
parent
0fd15b4d4a
commit
1de6447e22
@ -56,7 +56,7 @@ export default {
|
||||
let media = null
|
||||
|
||||
// if element div has `addition` class, search inside it for video or image
|
||||
if (element.classList.contains("addition")) {
|
||||
if (element.classList.contains("addition") || element.classList.contains("image-wrapper")) {
|
||||
media = element.querySelector("video, img")
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user