diff options
author | Matěj Cepl <mcepl@redhat.com> | 2010-06-16 10:36:13 +0200 |
---|---|---|
committer | Matěj Cepl <mcepl@redhat.com> | 2010-06-16 10:36:13 +0200 |
commit | 21374b14830837fe525046c1a77a4b61f31df6fa (patch) | |
tree | 2901376c5b97e82413a1b97e6c187236c047843b /lib/main.js | |
parent | 9c56aebdc7182fab939c900a6cf9580f38855f32 (diff) | |
download | bugzilla-triage-21374b14830837fe525046c1a77a4b61f31df6fa.tar.gz |
Port bugfixes from the -prototype branch. simpleStorage is apparently
not that simple and it will need to be fixed.
Diffstat (limited to 'lib/main.js')
-rw-r--r-- | lib/main.js | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/lib/main.js b/lib/main.js index 365d445..ac2fd04 100644 --- a/lib/main.js +++ b/lib/main.js @@ -15,7 +15,20 @@ var util = require("util"); var logger = require("logger"); var file = require("file"); + +// FIXME this apparently is not good, properties of the object +// itself must be set, not variable referring to it var myStorage = require("simple-storage").storage; +// FIXME we should follow private browsing state +/* +simpleStorage.storage.history = []; +var privateBrowsing = require("private-browsing"); +if (!privateBrowsing.active) { + var url = getSelectedTabURL(); + simpleStorage.storage.history.push(url); +} + +*/ var TriagedDistro = 13; var NumberOfFrames = 7; @@ -83,12 +96,19 @@ util.loadJSON(jetpack.storage.settings.JSONURL, function(parsedData) { for (let key in config.gJSONData) { keys += key + " "; } + console.log("keys = " + keys); + if ("PCIIDsURL" in config.gJSONData.configData) { util.loadJSON(config.gJSONData.configData.PCIIDsURL, function(response) { config.PCI_ID_Array = response; }); } + if (!myStorage.logs) { + console.log("No store for logs defined!"); + myStorage.logs = {}; + } + config.logger = new logger.Logger(myStorage.logs, config.gJSONData.constantData.bugzillalabelAbbreviations); |