use KVP for dashlane notes
This commit is contained in:
parent
e64fdf4e21
commit
e55926336c
|
@ -148,13 +148,9 @@ export class DashlaneJsonImporter extends BaseImporter implements Importer {
|
||||||
} else {
|
} else {
|
||||||
cipher.name = this.getValueOrDefault(obj[nameProperty]);
|
cipher.name = this.getValueOrDefault(obj[nameProperty]);
|
||||||
}
|
}
|
||||||
cipher.notes = '';
|
|
||||||
for (const key in obj) {
|
for (const key in obj) {
|
||||||
if (obj.hasOwnProperty(key) && key !== nameProperty) {
|
if (obj.hasOwnProperty(key) && key !== nameProperty) {
|
||||||
const val = obj[key].toString();
|
this.processKvp(cipher, key, obj[key].toString());
|
||||||
if (!this.isNullOrWhitespace(val)) {
|
|
||||||
cipher.notes += (key + ': ' + obj[key].toString() + '\n');
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
this.cleanupCipher(cipher);
|
this.cleanupCipher(cipher);
|
||||||
|
|
Loading…
Reference in New Issue