diff options
Diffstat (limited to 'lib/main.js')
-rw-r--r-- | lib/main.js | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/main.js b/lib/main.js index 1a2dd7e..ac01868 100644 --- a/lib/main.js +++ b/lib/main.js @@ -3,6 +3,9 @@ // Released under the MIT/X11 license // http://www.opensource.org/licenses/mit-license.php "use strict"; +var utilMod = require("util"); +var logMod = require("logger"); + jetpack.future.import("pageMods"); jetpack.future.import("storage.simple"); jetpack.future.import("selection"); @@ -55,7 +58,7 @@ config.matches = [ "https://bugzilla.redhat.com/show_bug.cgi", "https://bugzilla.mozilla.org/show_bug.cgi" ]; -hlpr.loadJSON(jetpack.storage.settings.JSONURL, function(parsedData) { +utilMod.loadJSON(jetpack.storage.settings.JSONURL, function(parsedData) { config.gJSONData = parsedData; // Get card translation table @@ -64,12 +67,12 @@ hlpr.loadJSON(jetpack.storage.settings.JSONURL, function(parsedData) { keys += key + " "; } if ("PCIIDsURL" in config.gJSONData.configData) { - hlpr.loadJSON(config.gJSONData.configData.PCIIDsURL, function(response) { + utilMod.loadJSON(config.gJSONData.configData.PCIIDsURL, function(response) { config.PCI_ID_Array = response; }); } - config.logger = new Logger(myStorage.logs, + config.logger = new logMod.Logger(myStorage.logs, config.gJSONData.constantData.bugzillalabelAbbreviations); let callback = function(doc) { |