aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@redhat.com>2010-06-11 22:47:20 +0200
committerMatěj Cepl <mcepl@redhat.com>2010-06-11 22:47:20 +0200
commitb7d1189321fdcaee248d59573e53fdf2a6a2d1d9 (patch)
tree97ded8acfda8dc6f4347cd88c6afdae95f68e25e
parent54b9bd00356e1632cd4aba5e13bede632c26eb09 (diff)
downloadbugzilla-triage-b7d1189321fdcaee248d59573e53fdf2a6a2d1d9.tar.gz
More cleanup
-rw-r--r--lib/main.js10
1 files changed, 1 insertions, 9 deletions
diff --git a/lib/main.js b/lib/main.js
index ae7eece..986670f 100644
--- a/lib/main.js
+++ b/lib/main.js
@@ -16,7 +16,6 @@ var util = require("util");
var file = require("file");
var myStorage = require("simple-storage").storage;
var browser = require("tab-browser");
-var JSONURL = "http://matej.ceplovi.cz/progs/data/RH_Data-packages.json";
var config = {};
@@ -33,19 +32,12 @@ function initialize(callback) {
}, this);
}
-// TODO: sometime in the future we should include
-// also skip-process.js functionality and these URLs
-// "https://bugzilla.redhat.com/process_bug.cgi",
-// "https://bugzilla.redhat.com/post_bug.cgi",
-// "https://bugzilla.mozilla.org/post_bug.cgi",
-// "https://bugzilla.mozilla.org/process_bug.cgi"
function isOurPage(window, matchingURLs) {
if ("window" in window) {
window = window.window;
}
var url = window.location.href;
- // like ["regexp-url1", "regexp-url2"]
return matchingURLs.some(function (element,i,a) {
return new RegExp(element).test(url);
});
@@ -63,4 +55,4 @@ exports.main = function main(options, callbacks) {
}
});
});
-}; \ No newline at end of file
+};