From de9e22d179d73fa8ba034aacb09ef8882a1185f6 Mon Sep 17 00:00:00 2001 From: johnysigma Date: Mon, 30 Mar 2026 15:28:39 +0300 Subject: [PATCH] Fix formatting issues --- js/background.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/js/background.js b/js/background.js index c303592..adb68dc 100644 --- a/js/background.js +++ b/js/background.js @@ -307,7 +307,6 @@ async function handleNextProxy() { status: 'connected', proxy: result.proxy }); - } else { } return result; @@ -442,7 +441,7 @@ async function handleSaveSettings(settings) { Utils.log('warn', 'Custom proxy settings invalid, disconnecting...'); await ProxyManager.disconnect(); await Storage.setProxyEnabled(false); - broadcastMessage({ + broadcastMessage({ action: 'statusUpdate', status: 'error', error: 'Custom proxy not configured' @@ -457,7 +456,7 @@ async function handleSaveSettings(settings) { ); if (result) { - broadcastMessage({ + broadcastMessage({ action: 'statusUpdate', status: 'connected', proxy: { host: customProxy.ip, port: customProxy.port }, @@ -467,7 +466,7 @@ async function handleSaveSettings(settings) { // Failed to apply - disconnect await ProxyManager.disconnect(); await Storage.setProxyEnabled(false); - broadcastMessage({ + broadcastMessage({ action: 'statusUpdate', status: 'error', error: 'Failed to apply proxy settings' @@ -557,7 +556,6 @@ function broadcastMessage(message) { }); } - /** * Handle proxy errors */