diff --git a/my-blog/static/js/ask-ai.js b/my-blog/static/js/ask-ai.js index 7afc9f7..ca3fb78 100644 --- a/my-blog/static/js/ask-ai.js +++ b/my-blog/static/js/ask-ai.js @@ -186,12 +186,7 @@ function updateAskAIButton() { const button = document.getElementById('askAiButton'); if (!button) return; - const iconSpan = button.querySelector('.ai-icon'); - - if (aiProfileData && aiProfileData.avatar && iconSpan) { - iconSpan.innerHTML = `${aiProfileData.displayName || 'AI'}`; - } - + // Only update text, never modify the icon if (aiProfileData && aiProfileData.displayName) { const textNode = button.childNodes[2] || button.lastChild; if (textNode && textNode.nodeType === Node.TEXT_NODE) {