mirror of
https://github.com/zumbiepig/MineXLauncher.git
synced 2025-06-08 09:24:48 +00:00
.
This commit is contained in:
parent
10d09ecfed
commit
c2597288c1
@ -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 = {
|
||||
|
@ -35,6 +35,8 @@ iframe {
|
||||
|
||||
.console span {
|
||||
margin: 5px 10px;
|
||||
font-family: 'Courier New', Courier, monospace;
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
.console span:first-child {
|
||||
|
Loading…
x
Reference in New Issue
Block a user