From b7d1189321fdcaee248d59573e53fdf2a6a2d1d9 Mon Sep 17 00:00:00 2001 From: Matěj Cepl Date: Fri, 11 Jun 2010 22:47:20 +0200 Subject: More cleanup --- lib/main.js | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'lib') 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 +}; -- cgit