From aa0fd9756397cdd9a0a962ea48cb83e2a30322ff Mon Sep 17 00:00:00 2001 From: mic Date: Fri, 9 Jan 2026 22:52:41 +0100 Subject: [PATCH] fix query selector --- pages/_lib/connection-ui.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/_lib/connection-ui.js b/pages/_lib/connection-ui.js index 37c779ed..7e668e50 100644 --- a/pages/_lib/connection-ui.js +++ b/pages/_lib/connection-ui.js @@ -1164,9 +1164,9 @@ export function showConnectionOptions(conntype_select, modelId_prefix = '') { element.style.display = anthropic_api_display; }); if (varConnectionUI.permission_all_urls) { - const openaiCompWarning = parent.parentElement.getElementById((modelId_prefix ? modelId_prefix : '') + 'openai_comp_api_cors_warning'); + const openaiCompWarning = document.getElementById((modelId_prefix ? modelId_prefix : '') + 'openai_comp_api_cors_warning'); if (openaiCompWarning) openaiCompWarning.style.display = 'none'; - const ollamaWarning = parent.parentElement.getElementById((modelId_prefix ? modelId_prefix : '') + 'ollama_api_cors_warning'); + const ollamaWarning = document.getElementById((modelId_prefix ? modelId_prefix : '') + 'ollama_api_cors_warning'); if (ollamaWarning) ollamaWarning.style.display = 'none'; } }