Skip to content

Commit

Permalink
Fix issue with login with google
Browse files Browse the repository at this point in the history
  • Loading branch information
SpecialAro authored and vraravam committed Sep 3, 2023
1 parent 22fec1f commit 8cfacf8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 24 deletions.
24 changes: 1 addition & 23 deletions recipes/chatgpt/index.js
Original file line number Diff line number Diff line change
@@ -1,23 +1 @@
module.exports = Ferdium =>
class Messenger extends Ferdium {
overrideUserAgent() {
return window.navigator.userAgent
.replaceAll(/(Ferdium|Electron)\/\S+ \([^)]+\)/g, '')
.trim();
}

modifyRequestHeaders() {
return [
{
headers: {
'user-agent': window.navigator.userAgent
.replaceAll(/(Ferdium|Electron)\/\S+ \([^)]+\)/g, '')
.trim(),
},
requestFilters: {
urls: ['*://*/*'],
},
},
];
}
};
module.exports = Ferdium => Ferdium;
2 changes: 1 addition & 1 deletion recipes/chatgpt/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "chatgpt",
"name": "ChatGPT",
"version": "1.1.0",
"version": "1.2.0",
"license": "MIT",
"config": {
"serviceURL": "https://chat.openai.com/chat"
Expand Down

0 comments on commit 8cfacf8

Please sign in to comment.