diff --git a/build.ts b/build.ts index 1ea9b38..bdcd3d3 100644 --- a/build.ts +++ b/build.ts @@ -81,7 +81,7 @@ if (!isDev) { outputPath, javascriptObfuscator .obfuscate(readFileSync(outputPath, 'utf-8'), { - optionsPreset: 'high-obfuscation', + //optionsPreset: 'medium-obfuscation', target: 'browser', }) .getObfuscatedCode() diff --git a/src/resources/scripts/main.ts b/src/resources/scripts/main.ts index e921731..7529e7b 100644 --- a/src/resources/scripts/main.ts +++ b/src/resources/scripts/main.ts @@ -224,8 +224,8 @@ const storage = { get: function (key: string) { const item = localStorage.getItem('minexlauncher'); if (item !== null) { - const decoded = atob(item); - const json = JSON.parse(decoded); + //const decoded = atob(item); + const json = JSON.parse(item); if (json[key] !== undefined) { return json[key]; } @@ -239,15 +239,15 @@ const storage = { const json: Record = {}; json[key] = value; const string = JSON.stringify(json); - const encoded = btoa(string); - localStorage.setItem('minexlauncher', encoded); + //const encoded = btoa(string); + localStorage.setItem('minexlauncher', string); } else { - const decoded = atob(item); - const json = JSON.parse(decoded); + //const decoded = atob(item); + const json = JSON.parse(item); json[key] = value; const string = JSON.stringify(json); - const encoded = btoa(string); - localStorage.setItem('minexlauncher', encoded); + //const encoded = btoa(string); + localStorage.setItem('minexlauncher', string); } }, }, diff --git a/src/welcome/index.html b/src/welcome/index.html index c9297b3..3486aa8 100644 --- a/src/welcome/index.html +++ b/src/welcome/index.html @@ -24,13 +24,13 @@

Let's get you setup.

- + - + -->