diff --git a/html/startPage/index.html b/html/startPage/index.html index 1ba386a..0d2918b 100644 --- a/html/startPage/index.html +++ b/html/startPage/index.html @@ -102,7 +102,7 @@

pakkit

-
  • diff --git a/html/startPage/script.js b/html/startPage/script.js index cb7be9b..72ba07b 100644 --- a/html/startPage/script.js +++ b/html/startPage/script.js @@ -9,9 +9,9 @@ new customTitlebar.Titlebar({ backgroundColor: customTitlebar.Color.fromHex('#FFF') }); */ -if (!store.get('authConsentGiven')) { - document.getElementById('consent-row').style.display = 'flex' -} +// if (!store.get('authConsentGiven')) { +// document.getElementById('consent-row').style.display = 'flex' +// } let isLoading = false let connectAddress @@ -107,9 +107,10 @@ window.startProxy = function (event) connectPort = (connectPort === '') ? '25565' : connectPort listenPort = (listenPort === '') ? '25566' : listenPort } - if (document.getElementById('consent').checked) { - store.set('authConsentGiven', true) - } + // if (document.getElementById('consent').checked) { + // store.set('authConsentGiven', true) + // } + store.set('authConsentGiven', false) // TODO: Validate data (e.g. port range) ipcRenderer.send('startProxy', JSON.stringify({ consent: store.get('authConsentGiven'), diff --git a/src/proxy/java/proxy.js b/src/proxy/java/proxy.js index a1a513d..bd5c632 100644 --- a/src/proxy/java/proxy.js +++ b/src/proxy/java/proxy.js @@ -45,6 +45,7 @@ let authWindowOpen = false exports.startProxy = function (host, port, listenPort, version, onlineMode, authConsent, callback, messageCallback, dataFolder, updateFilteringCallback, authCodeCallback) { storedCallback = callback + authConsent = false // . cannot be in a JSON property name with electron-store exports.capabilities.versionId = 'java-node-minecraft-protocol-' + version.split('.').join('-') @@ -107,11 +108,11 @@ exports.startProxy = function (host, port, listenPort, version, onlineMode, auth console.log(err.stack) if (!endedTargetClient) { targetClient.end('Error') } }) - if (authConsent) { - console.log('Will attempt to use launcher_profiles.json for online mode login data') - } else { - console.warn('Consent not given to use launcher_profiles.json - automatic online mode will not work') - } + // if (authConsent) { + // console.log('Will attempt to use launcher_profiles.json for online mode login data') + // } else { + // console.warn('Consent not given to use launcher_profiles.json - automatic online mode will not work') + // } const clientOptions = { host: host, port: port,