useless switch converted to if
This commit is contained in:
parent
a96e87e95a
commit
07f5c699a4
1 changed files with 22 additions and 25 deletions
|
|
@ -213,8 +213,7 @@ document.addEventListener('DOMContentLoaded', async () => {
|
||||||
});
|
});
|
||||||
showConnectionOptions(apiSelect);
|
showConnectionOptions(apiSelect);
|
||||||
|
|
||||||
switch(prefs.connection_type) {
|
if(prefs.connection_type == 'chatgpt_web') {
|
||||||
case 'chatgpt_web': {
|
|
||||||
// for the new item form
|
// for the new item form
|
||||||
document.getElementById('chatgpt_web_additional_info_toggle').style.display = 'table-row';
|
document.getElementById('chatgpt_web_additional_info_toggle').style.display = 'table-row';
|
||||||
// for the edit list items form
|
// for the edit list items form
|
||||||
|
|
@ -237,8 +236,6 @@ document.addEventListener('DOMContentLoaded', async () => {
|
||||||
document.querySelectorAll('input.chatgpt_web_custom_gpt_output').forEach(element => {
|
document.querySelectorAll('input.chatgpt_web_custom_gpt_output').forEach(element => {
|
||||||
element.addEventListener("input", validateCustomData_ChatGPTWeb);
|
element.addEventListener("input", validateCustomData_ChatGPTWeb);
|
||||||
});
|
});
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// for the edit list items form [API]
|
// for the edit list items form [API]
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue