mirror of
https://github.com/bitwarden/browser
synced 2025-12-17 00:33:44 +00:00
improt instructions
This commit is contained in:
@@ -165,6 +165,18 @@ export class ImportComponent {
|
||||
}
|
||||
}
|
||||
|
||||
getFormatName() {
|
||||
if (this.format == null) {
|
||||
return null;
|
||||
}
|
||||
|
||||
const results = this.featuredImportOptions.concat(this.importOptions).filter((o) => o.id === this.format);
|
||||
if (results.length > 0) {
|
||||
return results[0].name;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
private getFileContents(file: File): Promise<string> {
|
||||
return new Promise((resolve, reject) => {
|
||||
const reader = new FileReader();
|
||||
|
||||
Reference in New Issue
Block a user