[Misc] Append .prsv to data recovery file names to prevent user confusion (#4946)

This commit is contained in:
Mumble 2024-11-27 18:04:39 -08:00 committed by GitHub
parent 8f053ea16f
commit a7fa593f79
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -248,10 +248,10 @@ export default class LoginFormUiHandler extends FormModalUiHandler {
if (dataKeys.length > 0 || sessionKeys.length > 0) {
const zip = new JSZip();
for (let i = 0; i < dataKeys.length; i++) {
zip.file(dataKeys[i], localStorage.getItem(dataKeys[i])!);
zip.file(dataKeys[i] + ".prsv", localStorage.getItem(dataKeys[i])!);
}
for (let i = 0; i < sessionKeys.length; i++) {
zip.file(sessionKeys[i], localStorage.getItem(sessionKeys[i])!);
zip.file(sessionKeys[i] + ".prsv", localStorage.getItem(sessionKeys[i])!);
}
zip.generateAsync({ type: "blob" }).then(content => {
const url = URL.createObjectURL(content);