imageZoom: dont close carousel modal on image click (#1926)

Co-authored-by: Vendicated <vendicated@riseup.net>
This commit is contained in:
AutumnVN 2023-11-01 08:19:02 +07:00 committed by GitHub
parent 56a9d79f85
commit e37f62ac0a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 10 deletions

View file

@ -186,6 +186,13 @@ export default definePlugin({
}
]
},
{
find: ".carouselModal",
replacement: {
match: /(?<=\.carouselModal.{0,100}onClick:)\i,/,
replace: "()=>{},"
}
}
],
settings,