1
0
mirror of https://github.com/zumbiepig/MineXLauncher.git synced 2025-06-08 09:24:48 +00:00
This commit is contained in:
zumbiepig 2024-09-11 12:55:11 -07:00
parent 10d09ecfed
commit c2597288c1
No known key found for this signature in database
GPG Key ID: 17C891BE28B953DE
2 changed files with 12 additions and 1 deletions

View File

@ -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 = {

View File

@ -35,6 +35,8 @@ iframe {
.console span {
margin: 5px 10px;
font-family: 'Courier New', Courier, monospace;
font-size: 16px;
}
.console span:first-child {