diff --git a/src/resources/scripts/eagler-launch/1.8.8/main.ts b/src/resources/scripts/eagler-launch/1.8.8/main.ts index e7120de..d96e956 100644 --- a/src/resources/scripts/eagler-launch/1.8.8/main.ts +++ b/src/resources/scripts/eagler-launch/1.8.8/main.ts @@ -4,7 +4,7 @@ const storage = { get: function (key: string) { const item = localStorage.getItem('minexlauncher'); if (item !== null) { - const json = JSON.parse(item); + const json = JSON.parse(base64Gzip.decompress(item)); if (json[key] !== undefined) { return json[key]; } @@ -15,6 +15,15 @@ const storage = { }, }; +const base64Gzip = { + decompress: function (string: string): string { + return inflate( + Uint8Array.from(atob(string), (c) => c.charCodeAt(0)), + { to: 'string' }, + ); + }, +}; + window.addEventListener('load', () => { const relayId = Math.floor(Math.random() * 3); window.eaglercraftXOpts = { diff --git a/src/resources/styles/index.css b/src/resources/styles/index.css index a9ffec3..bffce82 100644 --- a/src/resources/styles/index.css +++ b/src/resources/styles/index.css @@ -35,6 +35,8 @@ iframe { .console span { margin: 5px 10px; + font-family: 'Courier New', Courier, monospace; + font-size: 16px; } .console span:first-child {