- commit
- 8abf86040f55578052ccdf824fa9b8cdb1800425
- parent
- 75f3a47fec5a0995814a77039810b93555dfe489
- Author
- Tobias Bengfort <tobias.bengfort@posteo.de>
- Date
- 2022-01-03 01:22
fix openAttachment in thunderbird 91
Diffstat
| M | experiment-api/api.js | 3 | ++- |
1 files changed, 2 insertions, 1 deletions
diff --git a/experiment-api/api.js b/experiment-api/api.js
@@ -114,7 +114,8 @@ var xi = class extends ExtensionCommon.ExtensionAPI {
114 114 // https://bugzilla.mozilla.org/show_bug.cgi?id=1696777
115 115 var msgHdr = context.extension.messageManager.get(id);
116 116 var win = Services.wm.getMostRecentWindow('mail:3pane');
117 -1 var attInfo = new win.AttachmentInfo(null, url, null, msg2uri(msgHdr));
-1 117 var params = getParams(url.split('?')[1] || '');
-1 118 var attInfo = new win.AttachmentInfo(null, url, params.filename, msg2uri(msgHdr));
118 119 attInfo.open();
119 120 },
120 121 async saveAttachment(id, url) {