From 6b5f16dc910d4a1394c1c8c99fd888d6ec1b2793 Mon Sep 17 00:00:00 2001 From: mic Date: Sun, 21 Jul 2024 00:19:28 +0200 Subject: [PATCH] first call of the new api webchat frontend (work in progress) --- mzta-background.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/mzta-background.js b/mzta-background.js index 39a99db7..bc55bee9 100644 --- a/mzta-background.js +++ b/mzta-background.js @@ -200,7 +200,12 @@ async function openChatGPT(promptText, action, curr_tabId, prompt_name = '', do_ }); }else{ // We are using the ChatGPT API - + let newWindow = await browser.windows.create({ + url: browser.runtime.getURL('api_webchat/index.html'), + type: "popup", + width: prefs.chatgpt_win_width, + height: prefs.chatgpt_win_height + }); } }