1
0
mirror of https://github.com/zumbiepig/MineXLauncher.git synced 2025-06-26 10:05:10 +00:00
This commit is contained in:
zumbiepig
2024-09-10 16:40:30 -07:00
parent 8fda5914a5
commit 9bc3cb6689
2 changed files with 38 additions and 16 deletions

View File

@@ -4,7 +4,6 @@ const storage = {
get: function (key: string) {
const item = localStorage.getItem('minexlauncher');
if (item !== null) {
//const decoded = atob(item);
const json = JSON.parse(item);
if (json[key] !== undefined) {
return json[key];
@@ -50,7 +49,7 @@ window.addEventListener('load', () => {
const urlParams = new URLSearchParams(window.location.search);
window.eaglercraftXOpts.joinServer = urlParams.get('server') ?? undefined;
window.eaglercraftXOpts.mods = storage.local.get('mods') ?? [];
window.eaglercraftXOpts.Mods = storage.local.get('mods') ?? [];
history.replaceState({}, '', '/play');
main();