diff options
Diffstat (limited to 'lib/libbugzilla.js')
-rw-r--r-- | lib/libbugzilla.js | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/lib/libbugzilla.js b/lib/libbugzilla.js index 41aa27a..2ec69a6 100644 --- a/lib/libbugzilla.js +++ b/lib/libbugzilla.js @@ -136,9 +136,6 @@ exports.getInstalledPackages = function getInstalledPackages(locationLoginObj, c location = new urlMod.URL(location); } - console.log("location = " + location); - console.log("typeof location = " + typeof location); - // Collect enabled packages per hostname (plus default ones) if (config.gJSONData && ("commentPackages" in config.gJSONData)) { if ("enabledPackages" in config.gJSONData.configData) { @@ -185,19 +182,14 @@ exports.getInstalledPackages = function getInstalledPackages(locationLoginObj, c config.gJSONData.commentStrings["sentUpstreamString"]; } - // Investigate situation about password - /* - passwObj = { - password: null, // password string or null if no password provided - withoutPass: false // whether user doesn't want to use password at all - }; */ var locURL = new urlMod.URL(locationLoginObj.location); var passDomain = locURL.scheme + "://" + locURL.host; var passwObj = getPassword(locationLoginObj.login, passDomain); // In order to avoid sending whole password to the content script, // we are sending just these two Booleans. + console.log("getInstalledPackages : passwObj = " + passwObj.toSource()); config.constantData.passwordState = { - passAvailable: (passwObj.password === null), + passAvailable: (passwObj.password !== null), withoutPass: passwObj.withoutPass }; |