1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-18 17:23:37 +00:00

dont import trashed items into 1password. (#64)

resolves #451
This commit is contained in:
Kyle Spearrin
2020-02-05 00:35:30 -05:00
committed by GitHub
parent bb459ce4b4
commit 1859357ddb

View File

@@ -22,6 +22,9 @@ export class OnePassword1PifImporter extends BaseImporter implements Importer {
return; return;
} }
const item = JSON.parse(line); const item = JSON.parse(line);
if(item.trashed === true) {
return;
}
const cipher = this.initLoginCipher(); const cipher = this.initLoginCipher();
if (this.isNullOrWhitespace(item.hmac)) { if (this.isNullOrWhitespace(item.hmac)) {