Use .json extension for encrypted json export (#1202)

This commit is contained in:
Matt Gibson 2020-12-31 10:58:58 -06:00 committed by GitHub
parent 3fc69f16d5
commit edb8dc58f7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -125,6 +125,8 @@ namespace Bit.App.Pages
{
var data = await _exportService.GetExport(FileFormatOptions[FileFormatSelectedIndex].Key);
var fileFormat = FileFormatOptions[FileFormatSelectedIndex].Key;
fileFormat = fileFormat == "encrypted_json" ? "json" : fileFormat;
_defaultFilename = _exportService.GetFileName(null, fileFormat);
_exportResult = Encoding.ASCII.GetBytes(data);