Skip to content

Commit

Permalink
Read additional titles and comments if present
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerard Chanekon authored and mulbc committed Feb 23, 2023
1 parent 3934e03 commit 1f41d4c
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,16 @@ function extractCredentialsSets(data) {
credentials.push({
username: data[key],
password: data['password' + key.substring(8)],
title: data.hasOwnProperty('title') ? data['title'] : '',
comment: data.hasOwnProperty('comment') ? data['comment'] : '',
title: data.hasOwnProperty('title' + key.substring(8))
? data['title' + key.substring(8)]
: data.hasOwnProperty('title')
? data['title']
: '',
comment: data.hasOwnProperty('comment' + key.substring(8))
? data['comment' + key.substring(8)]
: data.hasOwnProperty('comment')
? data['comment']
: '',
});
}
}
Expand Down

0 comments on commit 1f41d4c

Please sign in to comment.