diff --git a/extension/background.js b/extension/background.js index 9eb8320..9f44a08 100644 --- a/extension/background.js +++ b/extension/background.js @@ -343,6 +343,7 @@ function forceDisconnect() { socket = null; } currentServerUrl = null; + isConnecting = false; isNamespaceJoined = false; isForceSyncInitiator = false; expectedAcksCount = 0; @@ -605,8 +606,6 @@ async function connect() { addLog('WebSocket Error: Connection failed', logType); }; - isConnecting = false; - } catch (e) { isConnecting = false; const logType = reconnectAttempts > 1 ? 'error' : 'warn'; diff --git a/extension/popup.js b/extension/popup.js index fcce5b4..4c39bc9 100644 --- a/extension/popup.js +++ b/extension/popup.js @@ -237,8 +237,7 @@ async function init() { refreshLogs(); refreshHistory(); - // Default connection status (localized) before async check - applyConnectionStatus('disconnected'); + // Initial Status Check (status shows via GET_STATUS below) // Initial Status Check chrome.runtime.sendMessage({ type: 'GET_STATUS' }, async (res) => {