aboutsummaryrefslogtreecommitdiffstats
path: root/data/tweaks/viewSource.js
diff options
context:
space:
mode:
Diffstat (limited to 'data/tweaks/viewSource.js')
-rw-r--r--data/tweaks/viewSource.js19
1 files changed, 10 insertions, 9 deletions
diff --git a/data/tweaks/viewSource.js b/data/tweaks/viewSource.js
index d2a9fd1..81e6735 100644
--- a/data/tweaks/viewSource.js
+++ b/data/tweaks/viewSource.js
@@ -38,9 +38,9 @@
var reAttachmentType = /,\s+([^ )]*)[;)]/;
function viewAttachmentSource(attachments) {
- attachments.forEach(function (att) {
+ attachments.forEach(function(att) {
if (att.length < 1) {
- return ;
+ return;
}
var typeName = att[2];
var elem = att[4];
@@ -56,14 +56,16 @@ function viewAttachmentSource(attachments) {
//
// https://bugzilla.mozilla.org/show_bug.cgi?id=369814#c5 has more
// possible mime types for zips?
- createDeadLink("viewSourceJAR_" + id, "JAR Contents", elem,
- "jar:" + attachHref + "!/", [], "pipe", null, null);
+ createDeadLink("viewSourceJAR_" + id, "JAR Contents",
+ elem, "jar:" + attachHref + "!/", [], "pipe", null,
+ null);
}
else if (typeName == "application/zip"
|| typeName == "application/x-zip-compressed"
|| typeName == "application/x-xpinstall") {
- createDeadLink("viewSourceZIP_" + id, "Static ZIP Contents", elem,
- "jar:" + attachHref + "!/", [], "pipe", null, null);
+ createDeadLink("viewSourceZIP_" + id,
+ "Static ZIP Contents", elem, "jar:" + attachHref
+ + "!/", [], "pipe", null, null);
}
else if (typeName != "text/plain" && typeName != "patch" &&
// Other types that Gecko displays like text/plain
@@ -77,8 +79,7 @@ function viewAttachmentSource(attachments) {
typeName != "image/gif" && typeName != "image/png"
&& typeName != "image/jpeg") {
createDeadLink("viewSourcePlain_" + id, "Source", elem,
- "view-source:" + attachHref, [], "pipe", null, null);
- }
+ "view-source:" + attachHref, [], "pipe", null, null);
}
- )
+ })
}