aboutsummaryrefslogtreecommitdiffstats
path: root/lib/main.js
diff options
context:
space:
mode:
authorEhsan Akhgari <ehsan@mozilla.com>2010-05-31 00:12:55 -0400
committerEhsan Akhgari <ehsan@mozilla.com>2010-05-31 00:12:55 -0400
commit7b6830403857064b47e70e040918fbf5487b6dcb (patch)
treee4f62cc19d80d203dc0fe6ffe08b0c302282227b /lib/main.js
parent46a6306d46f28b03e1e9948c47f384e2c1b1d52b (diff)
downloadbugzilla-triage-7b6830403857064b47e70e040918fbf5487b6dcb.tar.gz
Fix a few bugs to actually make the jetpack work
Diffstat (limited to 'lib/main.js')
-rw-r--r--lib/main.js8
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/main.js b/lib/main.js
index 55619e0..5fb37b6 100644
--- a/lib/main.js
+++ b/lib/main.js
@@ -1,11 +1,9 @@
exports.main = function(options, callback) {
require("tab-browser").whenContentLoaded(
function(window) {
- if (window.location.protocol == "https" &&
+ if (window.location.protocol == "https:" &&
/bugzilla(-[a-zA-Z]+)*\.mozilla\.org/.test(window.location.href)) {
- require("persistent-page-mod").register(window, function() {
- tweakBugzilla(window.document);
- });
+ tweakBugzilla(window.document);
}
}
);
@@ -334,7 +332,7 @@ function tweakBugzilla(d) {
AttachmentFlagHandler.setupLinks(d);
},true);
d.body.appendChild(iframe);
-});
+}
var TransformValues = {
linkifyURLs: function (str) {