aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bzpage.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/bzpage.js')
-rw-r--r--lib/bzpage.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/bzpage.js b/lib/bzpage.js
index 4906d13..8061577 100644
--- a/lib/bzpage.js
+++ b/lib/bzpage.js
@@ -10,12 +10,11 @@ var Color = require("color").Color;
var TriagedDistro = 13;
var NumberOfFrames = 7;
-var XMLRPCurl = "https://bugzilla.redhat.com/xmlrpc.cgi";
var bugURL = "https://bugzilla.redhat.com/show_bug.cgi?id=";
// ====================================================================================
// BZPage's methods
-var BZPage = function BZPage(doc, config) {
+var BZPage = function BZPage(win, config) {
var keys = "";
for (var key in config) {
keys += key + ", ";
@@ -28,7 +27,8 @@ var BZPage = function BZPage(doc, config) {
this.ReporterColor = new Color(255, 255, 166); // RGB 255, 255, 166; HSL 60, 2,
// 83
// initialize dynamic properties
- this.doc = doc;
+ this.win = win;
+ this.doc = win.document;
this.packages = this.getInstalledPackages(config);
if ("commentStrings" in config.gJSONData) {