Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

Commit

Permalink
Added debug output
Browse files Browse the repository at this point in the history
  • Loading branch information
eglia committed Mar 21, 2016
1 parent cc89c21 commit b5d9eb1
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ pageMod.PageMod({
contentScriptFile: "./mine-password.js",
contentScriptWhen: "ready",
onAttach: function(worker) {
worker.port.on("passwordMined", passwordMined);
//worker.port.on("passwordMined", passwordMined);
}
});

Expand Down Expand Up @@ -547,7 +547,13 @@ function processLoginList() {
for (var i=0; i<loginList.length; i++) {
var entryProperties = "{" + loginList[i]["properties"] + "}";
entryProperties = escapeJSON(entryProperties);
entryProperties = JSON.parse(entryProperties);
try {
entryProperties = JSON.parse(entryProperties);
}
catch(err) {
console.error(entryProperties);
console.exception(err);
}
var entryAddress = getHostFromURL(entryProperties["address"])
var entryWebsite = getHostFromURL(loginList[i]["website"])
if (host == entryAddress || host == entryWebsite) {
Expand Down

0 comments on commit b5d9eb1

Please sign in to comment.