aboutsummaryrefslogtreecommitdiffstats
path: root/lib/main.js
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@redhat.com>2011-05-16 11:25:21 +0200
committerMatěj Cepl <mcepl@redhat.com>2011-06-05 14:53:47 +0200
commit2d9470cfdf90b3fb7edfc6525bf85e36fed53d64 (patch)
tree10e174962ddffd234d09e16510dbe02090f798d5 /lib/main.js
parent3fafbe03370e25a630deea8f73971bee2090570d (diff)
downloadbugzilla-triage-2d9470cfdf90b3fb7edfc6525bf85e36fed53d64.tar.gz
Remove unnecessary isOurPage function.
Diffstat (limited to 'lib/main.js')
-rw-r--r--lib/main.js14
1 files changed, 6 insertions, 8 deletions
diff --git a/lib/main.js b/lib/main.js
index c587202..235a956 100644
--- a/lib/main.js
+++ b/lib/main.js
@@ -19,14 +19,6 @@ var logger = require("logger");
var Message = require("util").Message;
var contextMenu = require("context-menu");
-function isOurPage(window, matchingURLs) {
- var url = window.location.href;
-
- // like ["regexp-url1", "regexp-url2"]
- return matchingURLs.some(function(element, i, a) {
- return new RegExp(element).test(url);
- });
-}
/**
*
@@ -43,6 +35,7 @@ function skipThisPage(doc) {
}
}
+
var messageHandler = exports.messageHandler = function messageHandler(
worker, msg) {
switch (msg.cmd) {
@@ -138,6 +131,7 @@ var messageHandler = exports.messageHandler = function messageHandler(
}
};
+
var contentScriptLibraries = [
self.data.url('tweaks/urltest.js'),
self.data.url("lib/util.js"),
@@ -158,6 +152,7 @@ var contentScriptLibraries = [
self.data.url("lib/bzpage.js")
];
+
libbz.initialize(libbz.config, function() {
pageMod.PageMod({
include : [
@@ -175,6 +170,7 @@ libbz.initialize(libbz.config, function() {
});
});
+
pageMod.PageMod({
include : [
"https://bugzilla.redhat.com/process_bug.cgi",
@@ -191,6 +187,7 @@ pageMod.PageMod({
contentScriptFile : self.data.url("lib/skip-bug.js")
});
+
//Allow toggling of CC event displays using a context menu entry
contextMenu.Item({
label : "Toggle CC History",
@@ -200,6 +197,7 @@ contextMenu.Item({
]
});
+
contextMenu.Item({
label : "Copy Check-in Comment",
contentScriptFile : [