From bef7ecd40996411ce9646c9ab664c039588d6a2b Mon Sep 17 00:00:00 2001 From: Abe Jellinek Date: Fri, 22 Mar 2024 12:44:30 -0400 Subject: [PATCH] Scaffold: Print attachment URLs Useful for debugging. This doesn't apply to tests. --- chrome/content/scaffold/scaffold.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chrome/content/scaffold/scaffold.js b/chrome/content/scaffold/scaffold.js index 47a5e3da19..5065865916 100644 --- a/chrome/content/scaffold/scaffold.js +++ b/chrome/content/scaffold/scaffold.js @@ -1159,10 +1159,10 @@ var Scaffold = new function () { if (Array.isArray(item.attachments)) { for (let attachment of item.attachments) { if (attachment.document) { - attachment.document = '[object Document]'; attachment.mimeType = 'text/html'; + attachment.url = attachment.document.location?.href; + delete attachment.document; } - delete attachment.url; delete attachment.complete; } }