Skip to content

Commit

Permalink
[Misc] Append .prsv to data recovery file names to prevent user confu…
Browse files Browse the repository at this point in the history
…sion (#4946)
  • Loading branch information
frutescens authored Nov 28, 2024
1 parent 8f053ea commit a7fa593
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ui/login-form-ui-handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit a7fa593

Please sign in to comment.