diff --git a/index.html b/index.html
index b835c27..61d1a52 100644
--- a/index.html
+++ b/index.html
@@ -47,15 +47,6 @@
diff --git a/src/main.js b/src/main.js
index 7299780..e6acc67 100644
--- a/src/main.js
+++ b/src/main.js
@@ -40,10 +40,11 @@ async function doConnect() {
const url = document.getElementById('srv-url').value.trim().replace(/\/$/,'');
const user = document.getElementById('srv-user').value.trim();
const pass = document.getElementById('srv-pass').value;
- const lfKey = document.getElementById('lastfm-key')?.value.trim() ?? S.cfg.lastfmKey ?? '';
- const backUrl = (document.getElementById('backend-url')?.value.trim() ?? S.cfg.backendUrl ?? '').replace(/\/$/,'');
- const spId = document.getElementById('spotify-client-id')?.value.trim() ?? S.cfg.spotifyClientId ?? '';
- const spSecret = document.getElementById('spotify-client-secret')?.value.trim() ?? S.cfg.spotifyClientSecret ?? '';
+ const _prev = (() => { try { return JSON.parse(localStorage.getItem('ns_cfg') || '{}'); } catch { return {}; } })();
+ const lfKey = document.getElementById('lastfm-key')?.value.trim() || _prev.lastfmKey || '';
+ const backUrl = (document.getElementById('backend-url')?.value.trim() || _prev.backendUrl || '').replace(/\/$/,'');
+ const spId = document.getElementById('spotify-client-id')?.value.trim() || _prev.spotifyClientId || '';
+ const spSecret = document.getElementById('spotify-client-secret')?.value.trim() || _prev.spotifyClientSecret || '';
if(!url || !user || !pass) { _showSetupError('Bitte Server-URL, Benutzernamen und Passwort ausfüllen.'); return; }
const btn = document.getElementById('btn-connect');
btn.disabled=true; btn.textContent='Verbinde…';