snappymail/plugins/attachments-force-open/extension.js
2024-03-15 01:16:43 +01:00

13 lines
378 B
JavaScript

(() => {
const dom = document.getElementById('MailMessageView').content;
dom.querySelector('.attachmentsControls').dataset.bind = '';
let ds = dom.querySelector('.attachmentsPlace').dataset;
ds.bind = ds.bind.replace('showAttachmentControls', 'true');
ds = dom.querySelector('.controls-handle').dataset;
ds.bind = ds.bind.replace('allowAttachmentControls', 'false');
})();