diff options
author | Matěj Cepl <mcepl@redhat.com> | 2010-06-22 17:18:44 +0200 |
---|---|---|
committer | Matěj Cepl <mcepl@redhat.com> | 2010-06-22 17:18:44 +0200 |
commit | c1f7615fa2a5dcc15fa3ed7962016537dd31bbfd (patch) | |
tree | c166ac80ff488e8706161a4defb373ee71e13bcd /lib/main.js | |
parent | 390f9042f82e4aaa6a57d08b9a5edfb38f688abf (diff) | |
download | bugzilla-triage-c1f7615fa2a5dcc15fa3ed7962016537dd31bbfd.tar.gz |
Make fixing MIME type again (includes creation of util.httpPOST)
- it is useful to have variable in the same module where the function using it
is.
- a lot of this magic and mystery
- add this.win property
- yuhooo, we have timer module, so I don't have to fish it from
this.doc.defaultView (which doesn't work anyway)
Diffstat (limited to 'lib/main.js')
-rw-r--r-- | lib/main.js | 5 |
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); } |