adde a workaround for chatgpt web login issues. see #155

This commit is contained in:
mic 2024-10-11 21:18:44 +02:00
parent 424142d4cc
commit 00aa5e9305
2 changed files with 13 additions and 0 deletions

View file

@ -99,6 +99,14 @@
</td>
</tr>
<tr>
<tr class="conntype_chatgpt_web">
<td><label>
<span>__MSG_OpenChatGPTTab_Info__</span>
</label></td>
<td>
<button id="btnChatGPTWeb_Tab">__MSG_OpenChatGPTTab__</button>
</td>
</tr>
<tr class="conntype_chatgpt_api">
<td><label>
<span>__MSG_prefs_ChatGPT_API_Key__</span>

View file

@ -381,4 +381,9 @@ select_openai_comp_model.addEventListener("change", warn_OpenAIComp_HostEmpty);
icon_img_openai_comp_api_key.src = type === 'password' ? "../images/pwd-show.png" : "../images/pwd-hide.png";
});
const btnChatGPTWeb_Tab = document.getElementById('btnChatGPTWeb_Tab');
btnChatGPTWeb_Tab.addEventListener('click', () => {
browser.tabs.create({ url: 'https://chatgpt.com/' });
});
}, { once: true });