Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/marius-wieschollek/passwords-webextension.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src/js
diff options
context:
space:
mode:
authorMarius David Wieschollek <passwords.public@mdns.eu>2021-01-17 15:32:22 +0300
committerMarius David Wieschollek <passwords.public@mdns.eu>2021-01-17 15:32:22 +0300
commitfbe21f5463634023333375cfa8657b5d674a6f35 (patch)
tree87260a68c81545d545bb79c11a39385ddb63a269 /src/js
parent01fe6c15e6b970a45986af5b8177d9814c3d394d (diff)
Read autocomplete setting correctly
Signed-off-by: Marius David Wieschollek <passwords.public@mdns.eu>
Diffstat (limited to 'src/js')
-rw-r--r--src/js/Manager/AutofillManager.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/js/Manager/AutofillManager.js b/src/js/Manager/AutofillManager.js
index 4671f5b..7b4e141 100644
--- a/src/js/Manager/AutofillManager.js
+++ b/src/js/Manager/AutofillManager.js
@@ -25,9 +25,15 @@ export default new class AutofillManager {
* @private
*/
async _sendAutofillPassword(recommendations) {
- if(recommendations.length === 0 || await SettingsService.getValue('paste.autofill')) return;
+ if(recommendations.length === 0 || await SettingsService.getValue('paste.autofill') === false) return;
let password = recommendations[0];
+ let ids = TabManager.get('autofill.ids', []);
+ if(ids.indexOf(password.getId()) === -1) {
+ ids.push(password.getId());
+ TabManager.set('autofill.ids', ids);
+ }
+
MessageService.send(
{
type : 'autofill.password',