Skip to content

Commit

Permalink
chatgpt_fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
ishandutta2007 committed May 10, 2024
1 parent 3428edc commit ff7156e
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/content-script/ChatGPTQuery.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -301,8 +301,8 @@ function ChatGPTQuery(props: Props) {
return (
<p>
Please login and pass Cloudflare check at{' '}
<a href="https://chat.openai.com" target="_blank" rel="noreferrer">
chat.openai.com
<a href="https://chatgpt.com" target="_blank" rel="noreferrer">
chatgpt.com
</a>
{retry > 0 &&
(() => {
Expand Down
5 changes: 4 additions & 1 deletion src/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@
"48": "logo.png",
"128": "logo.png"
},
"host_permissions": ["https://*.openai.com/"],
"host_permissions": [
"https://*.openai.com/",
"https://*.chatgpt.com/"
],
"permissions": [ "storage" ],
"background": {
"service_worker": "background.js"
Expand Down
6 changes: 5 additions & 1 deletion src/manifest.v2.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@
"48": "logo.png",
"128": "logo.png"
},
"permissions": ["storage", "https://*.openai.com/"],
"permissions": [
"storage",
"https://*.openai.com/",
"https://*.chatgpt.com/"
],
"background": {
"scripts": ["background.js"]
},
Expand Down
6 changes: 3 additions & 3 deletions src/popup/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,14 @@ function App() {
)
}
if (accessTokenQuery.data) {
return <iframe src="https://chat.openai.com" className="grow border-none" />
return <iframe src="https://chatgpt.com" className="grow border-none" />
}
return (
<div className="grow flex flex-col justify-center">
<p className="text-base px-2 text-center">
Please login and pass Cloudflare check at{' '}
<a href="https://chat.openai.com" target="_blank" rel="noreferrer">
chat.openai.com
<a href="https://chatgpt.com" target="_blank" rel="noreferrer">
chatgpt.com
</a>
</p>
</div>
Expand Down

0 comments on commit ff7156e

Please sign in to comment.