1
0
mirror of https://github.com/zumbiepig/MineXLauncher.git synced 2025-06-08 09:24:48 +00:00
Signed-off-by: zumbiepig <121742281+zumbiepig@users.noreply.github.com>
This commit is contained in:
zumbiepig 2024-09-21 09:23:31 -07:00 committed by GitHub
parent 4a57377ac0
commit 5fc13f99b5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -430,14 +430,14 @@ const storage = {
const json: Record<string, unknown> = {};
json[key] = value;
localStorage.setItem(
'minexlauncher',
'minexlauncher-v2',
base64Gzip.compress(JSON.stringify(json)),
);
} else {
const json = JSON.parse(base64Gzip.decompress(item));
json[key] = value;
localStorage.setItem(
'minexlauncher',
'minexlauncher-v2',
base64Gzip.compress(JSON.stringify(json)),
);
}
@ -464,14 +464,14 @@ const storage = {
const json: Record<string, unknown> = {};
json[key] = value;
sessionStorage.setItem(
'minexlauncher',
'minexlauncher-v2',
base64Gzip.compress(JSON.stringify(json)),
);
} else {
const json = JSON.parse(base64Gzip.decompress(item));
json[key] = value;
sessionStorage.setItem(
'minexlauncher',
'minexlauncher-v2',
base64Gzip.compress(JSON.stringify(json)),
);
}