fixed red highlighting for model field when loading the option page
This commit is contained in:
parent
ce56e2a1b1
commit
ee712650b8
1 changed files with 6 additions and 5 deletions
|
|
@ -207,11 +207,6 @@ document.addEventListener('DOMContentLoaded', async () => {
|
||||||
element.addEventListener("change", saveOptions);
|
element.addEventListener("change", saveOptions);
|
||||||
});
|
});
|
||||||
|
|
||||||
showConnectionOptions();
|
|
||||||
warn_ChatGPT_APIKeyEmpty();
|
|
||||||
warn_Ollama_HostEmpty();
|
|
||||||
warn_OpenAIComp_HostEmpty();
|
|
||||||
|
|
||||||
document.getElementById('btnManagePrompts').addEventListener('click', () => {
|
document.getElementById('btnManagePrompts').addEventListener('click', () => {
|
||||||
// check if the tab is already there
|
// check if the tab is already there
|
||||||
browser.tabs.query({url: browser.runtime.getURL('../customprompts/mzta-custom-prompts.html')}).then((tabs) => {
|
browser.tabs.query({url: browser.runtime.getURL('../customprompts/mzta-custom-prompts.html')}).then((tabs) => {
|
||||||
|
|
@ -372,4 +367,10 @@ select_openai_comp_model.addEventListener("change", warn_OpenAIComp_HostEmpty);
|
||||||
|
|
||||||
warn_OpenAIComp_HostEmpty();
|
warn_OpenAIComp_HostEmpty();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
showConnectionOptions();
|
||||||
|
warn_ChatGPT_APIKeyEmpty();
|
||||||
|
warn_Ollama_HostEmpty();
|
||||||
|
warn_OpenAIComp_HostEmpty();
|
||||||
|
|
||||||
}, { once: true });
|
}, { once: true });
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue