From 584245f8a4571e967c9fbecec78bb92483bda8db Mon Sep 17 00:00:00 2001 From: Broque Thomas Date: Sun, 24 Aug 2025 20:54:07 -0700 Subject: [PATCH] Update script.js --- webui/static/script.js | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/webui/static/script.js b/webui/static/script.js index 8f430086..b395812e 100644 --- a/webui/static/script.js +++ b/webui/static/script.js @@ -913,22 +913,7 @@ function initializeSettings() { } // Test connection buttons - const testSpotifyBtn = document.querySelector('.api-test-buttons button[onclick="testConnection(\'spotify\')"]'); - if (testSpotifyBtn) { - testSpotifyBtn.addEventListener('click', () => testConnection('spotify')); - } - const testTidalBtn = document.querySelector('.api-test-buttons button[onclick="testConnection(\'tidal\')"]'); - if (testTidalBtn) { - testTidalBtn.addEventListener('click', () => testConnection('tidal')); - } - const testSoulseekBtn = document.querySelector('.api-test-buttons button[onclick="testConnection(\'soulseek\')"]'); - if (testSoulseekBtn) { - testSoulseekBtn.addEventListener('click', () => testConnection('soulseek')); - } - const testServerBtn = document.querySelector('.server-test-btn'); - if (testServerBtn) { - testServerBtn.addEventListener('click', () => testConnection('server')); - } + // Test button event listeners removed - they use onclick attributes in HTML to avoid double firing } async function loadSettingsData() {