disabling add_tags_use_specific_integration checkbox if chatgptweb is selected. see #438

This commit is contained in:
Mic 2025-09-04 23:01:00 +02:00
parent 3a1e7dde3e
commit fb6815b664

View file

@ -63,6 +63,8 @@ document.addEventListener('DOMContentLoaded', async () => {
let prefs_add_tags = await browser.storage.sync.get({ add_tags_enabled_accounts: [], connection_type: 'chatgpt_web' });
if(prefs_add_tags.connection_type == 'chatgpt_web'){
add_tags_use_specific_integration_el.checked = true;
add_tags_use_specific_integration_el.dispatchEvent(new Event('change'));
add_tags_use_specific_integration_el.disabled = true;
}
let conntype_row = document.getElementById(conntype_select_id + '_tr');