Update script.js

pull/15/head
Broque Thomas 9 months ago
parent e912be68e7
commit 584245f8a4

@ -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() {

Loading…
Cancel
Save