From a7fa593f79319233b604d407756067d9fffd9151 Mon Sep 17 00:00:00 2001 From: Mumble <171087428+frutescens@users.noreply.github.com> Date: Wed, 27 Nov 2024 18:04:39 -0800 Subject: [PATCH] [Misc] Append .prsv to data recovery file names to prevent user confusion (#4946) --- src/ui/login-form-ui-handler.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ui/login-form-ui-handler.ts b/src/ui/login-form-ui-handler.ts index 4919095c8a4..d3c3663ec4b 100644 --- a/src/ui/login-form-ui-handler.ts +++ b/src/ui/login-form-ui-handler.ts @@ -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);