From 2cf21599c06402e7941c000d8573df50bf0180e8 Mon Sep 17 00:00:00 2001 From: Mic Date: Tue, 3 Jun 2025 22:43:00 +0200 Subject: [PATCH] hide model warning on button click in addCustomDiv function --- js/mzta-chatgpt.js | 1 + 1 file changed, 1 insertion(+) diff --git a/js/mzta-chatgpt.js b/js/mzta-chatgpt.js index a6fcc333..19df3be9 100644 --- a/js/mzta-chatgpt.js +++ b/js/mzta-chatgpt.js @@ -151,6 +151,7 @@ function addCustomDiv(prompt_action,tabId,mailMessageId) { btn_model.textContent = browser.i18n.getMessage("chatgpt_btn_model"); btn_model.onclick = async function() { force_go = true; + document.getElementById('mzta-model_warn').style.display = 'none'; }; modelWarnDiv.appendChild(btn_model);