From f66055b0c558145755290a6ec7a60dfaae5b0a33 Mon Sep 17 00:00:00 2001 From: mic Date: Fri, 17 May 2024 19:00:38 +0200 Subject: [PATCH] using the new endpoint chatgpt.com --- js/mzta-chatgpt.js | 2 +- mzta-background.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/js/mzta-chatgpt.js b/js/mzta-chatgpt.js index ab53d0b2..7c8342b1 100644 --- a/js/mzta-chatgpt.js +++ b/js/mzta-chatgpt.js @@ -254,7 +254,7 @@ function operation_done(){ } function checkLoggedIn(){ - return !window.location.href.startsWith('https://chat.openai.com/auth/'); + return !window.location.href.startsWith('https://chatgpt.com/auth/'); } // Nello script di contenuto diff --git a/mzta-background.js b/mzta-background.js index 6639ca57..19d42472 100644 --- a/mzta-background.js +++ b/mzta-background.js @@ -132,7 +132,7 @@ async function openChatGPT(promptText, action, curr_tabId) { return; } let newWindow = await browser.windows.create({ - url: "https://chat.openai.com", + url: "https://chatgpt.com", type: "popup", width: prefs.chatgpt_win_width, height: prefs.chatgpt_win_height