fix attachment button and logic

This commit is contained in:
2026-05-18 16:49:31 +02:00
parent e97698877d
commit 313cbeddc4
2 changed files with 1 additions and 5 deletions

View File

@@ -1186,7 +1186,7 @@ if (window.__dmLoaded) {
actions.prepend(spoilerBtn);
// ── Attachment button ─────────────────────────────────────────────────
if (window.f0ckSession?.dm_attachments !== false) {
if (window.f0ckSession?.dm_attachments === true) {
const attachInput = document.createElement('input');
attachInput.type = 'file';
attachInput.id = 'dm-attach-input';