use KVP for dashlane notes

This commit is contained in:
Kyle Spearrin 2018-12-13 14:37:55 -05:00
parent e64fdf4e21
commit e55926336c
1 changed files with 1 additions and 5 deletions

View File

@ -148,13 +148,9 @@ export class DashlaneJsonImporter extends BaseImporter implements Importer {
} else {
cipher.name = this.getValueOrDefault(obj[nameProperty]);
}
cipher.notes = '';
for (const key in obj) {
if (obj.hasOwnProperty(key) && key !== nameProperty) {
const val = obj[key].toString();
if (!this.isNullOrWhitespace(val)) {
cipher.notes += (key + ': ' + obj[key].toString() + '\n');
}
this.processKvp(cipher, key, obj[key].toString());
}
}
this.cleanupCipher(cipher);