1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-08-25 23:03:07 +02:00

use KVP for dashlane notes

This commit is contained in:
Kyle Spearrin 2018-12-13 14:37:55 -05:00
parent e64fdf4e21
commit e55926336c

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);