aboutsummaryrefslogtreecommitdiffstats
path: root/lib/main.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/main.js')
-rw-r--r--lib/main.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/main.js b/lib/main.js
index d1e518d..d572da3 100644
--- a/lib/main.js
+++ b/lib/main.js
@@ -124,7 +124,6 @@ exports.main = function main(options, callbacks) {
function(window) {
// is this good for anything?
if ("window" in window) { window = window.window; }
- var doc = window.document;
var construct = {};
var bzType = config.gJSONData.configData.objectStyle;
@@ -134,9 +133,9 @@ exports.main = function main(options, callbacks) {
construct = require("mozillabzpage").MozillaBugzilla;
}
if (isOurPage(window, config.matches)) {
- var curPage = new construct(doc, config);
+ var curPage = new construct(window, config);
} else if (isOurPage(window, config.skipMatches)) {
- skipThisPage(doc);
+ skipThisPage(window.document);
} else {
console.log("Not our page: " + window.location.href);
}