diff options
Diffstat (limited to 'lib/main.js')
-rw-r--r-- | lib/main.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/main.js b/lib/main.js index b298829..e8d69c6 100644 --- a/lib/main.js +++ b/lib/main.js @@ -49,8 +49,9 @@ exports.main = function main(options, callbacks) { browser.whenContentLoaded( function(window) { var doc = window.document; + var construct = require("rhbzpage").RHBugzillaPage; if (isOurPage(window, matches)) { - var curPage = new require("rhbzpage").RHBugzillaPage(doc, config); + var curPage = construct(doc, config); } else { console.log("Not our page: " + window.location.href); } |