diff --git a/webui/app.js b/webui/app.js index 0029bd6..87ebaa9 100644 --- a/webui/app.js +++ b/webui/app.js @@ -875,14 +875,17 @@ async function main() { // ── Settings dialog ── const settingsDialog = document.getElementById('settings-dialog'); - document.getElementById('open-settings-btn').addEventListener('click', () => { - // Update auth section for active account - if (state.activeAccount) { - updateAuthSection(state.activeAccount); - } - renderSettingsAccounts(); - settingsDialog.showModal(); - }); + const openSettingsBtn = document.getElementById('open-settings-btn'); + if (!openSettingsBtn.matches('a[href]')) { + openSettingsBtn.addEventListener('click', () => { + // Update auth section for active account + if (state.activeAccount) { + updateAuthSection(state.activeAccount); + } + renderSettingsAccounts(); + settingsDialog.showModal(); + }); + } document.getElementById('close-settings-btn').addEventListener('click', () => { settingsDialog.close(); }); diff --git a/webui/index.html b/webui/index.html index e365a4d..6b41ce6 100644 --- a/webui/index.html +++ b/webui/index.html @@ -17,6 +17,7 @@