mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-01-15 13:31:40 +00:00
[Misc] Append .prsv to data recovery file names to prevent user confusion (#4946)
This commit is contained in:
parent
8f053ea16f
commit
a7fa593f79
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user