aboutsummaryrefslogtreecommitdiffstats
path: root/data/tweaks
diff options
context:
space:
mode:
Diffstat (limited to 'data/tweaks')
-rw-r--r--data/tweaks/viewSource.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/data/tweaks/viewSource.js b/data/tweaks/viewSource.js
index 81e6735..fdf92d3 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.name;
+ var elem = att.element;
+ var id = att.id;
var attachHref = elem.getAttribute("href");
if (typeName == "application/java-archive"