diff --git a/templates/boot.html b/templates/boot.html index 9a77a1c..e14668f 100644 --- a/templates/boot.html +++ b/templates/boot.html @@ -521,35 +521,6 @@ }); }); - // Save configuration - function saveConfig() { - const wallet = document.getElementById('wallet-address').value.trim(); - const powerCost = parseFloat(document.getElementById('power-cost').value) || 0; - const powerUsage = parseFloat(document.getElementById('power-usage').value) || 0; - const timezone = document.getElementById('timezone').value; - - const updatedConfig = { - wallet: wallet || (currentConfig ? currentConfig.wallet : ""), - power_cost: powerCost, - power_usage: powerUsage, - timezone: timezone - }; - - return fetch('/api/config', { - method: 'POST', - headers: { - 'Content-Type': 'application/json', - }, - body: JSON.stringify(updatedConfig) - }) - .then(response => { - if (!response.ok) { - throw new Error('Failed to save configuration'); - } - return response.json(); - }); - } - // Safety timeout: redirect after 120 seconds if boot not complete window.addEventListener('load', function () { setTimeout(function () {