mirror of
https://github.com/zumbiepig/MineXLauncher.git
synced 2025-06-08 09:24:48 +00:00
hotfix
Signed-off-by: zumbiepig <121742281+zumbiepig@users.noreply.github.com>
This commit is contained in:
parent
a21107a538
commit
c171c62dd7
@ -430,14 +430,14 @@ const storage = {
|
|||||||
const json: Record<string, unknown> = {};
|
const json: Record<string, unknown> = {};
|
||||||
json[key] = value;
|
json[key] = value;
|
||||||
localStorage.setItem(
|
localStorage.setItem(
|
||||||
'minexlauncher',
|
'minexlauncher-v2',
|
||||||
base64Gzip.compress(JSON.stringify(json)),
|
base64Gzip.compress(JSON.stringify(json)),
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
const json = JSON.parse(base64Gzip.decompress(item));
|
const json = JSON.parse(base64Gzip.decompress(item));
|
||||||
json[key] = value;
|
json[key] = value;
|
||||||
localStorage.setItem(
|
localStorage.setItem(
|
||||||
'minexlauncher',
|
'minexlauncher-v2',
|
||||||
base64Gzip.compress(JSON.stringify(json)),
|
base64Gzip.compress(JSON.stringify(json)),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@ -464,14 +464,14 @@ const storage = {
|
|||||||
const json: Record<string, unknown> = {};
|
const json: Record<string, unknown> = {};
|
||||||
json[key] = value;
|
json[key] = value;
|
||||||
sessionStorage.setItem(
|
sessionStorage.setItem(
|
||||||
'minexlauncher',
|
'minexlauncher-v2',
|
||||||
base64Gzip.compress(JSON.stringify(json)),
|
base64Gzip.compress(JSON.stringify(json)),
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
const json = JSON.parse(base64Gzip.decompress(item));
|
const json = JSON.parse(base64Gzip.decompress(item));
|
||||||
json[key] = value;
|
json[key] = value;
|
||||||
sessionStorage.setItem(
|
sessionStorage.setItem(
|
||||||
'minexlauncher',
|
'minexlauncher-v2',
|
||||||
base64Gzip.compress(JSON.stringify(json)),
|
base64Gzip.compress(JSON.stringify(json)),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user