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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

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