diff options
Diffstat (limited to 'data/tweaks/viewSource.js')
-rw-r--r-- | data/tweaks/viewSource.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/data/tweaks/viewSource.js b/data/tweaks/viewSource.js index 81e6735..2415531 100644 --- a/data/tweaks/viewSource.js +++ b/data/tweaks/viewSource.js @@ -39,12 +39,12 @@ var reAttachmentType = /,\s+([^ )]*)[;)]/; function viewAttachmentSource(attachments) { attachments.forEach(function(att) { - if (att.length < 1) { + if (!att.id) { return; } - var typeName = att[2]; - var elem = att[4]; - var id = att[1]; + var typeName = att.mimeType; + var elem = att.element; + var id = att.id; var attachHref = elem.getAttribute("href"); if (typeName == "application/java-archive" |