chore: enable no-jquery/no-sizzle

Don't rely on Jquery's CSS selector engine.
This commit is contained in:
Gusted 2025-04-01 03:58:09 +02:00
parent dde7c4a770
commit 9eb67ba8ed
No known key found for this signature in database
GPG key ID: FD821B732837125F
2 changed files with 2 additions and 2 deletions

View file

@ -23,7 +23,7 @@ export function initCompReactionSelector($parent) {
$react.remove();
}
if (!data.empty) {
const $attachments = $content.find('.segment.bottom:first');
const $attachments = $content.find('.segment.bottom').first();
$react = $(data.html);
if ($attachments.length > 0) {
$react.insertBefore($attachments);