Skip to content
This repository has been archived by the owner on Jun 30, 2023. It is now read-only.

Commit

Permalink
Merge pull request #7 from anaclumos/1.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
anaclumos authored Feb 16, 2023
2 parents bdfa82e + 29989bf commit ed3cd75
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bing-chat-for-all-browsers",
"version": "1.0.1",
"version": "1.0.2",
"description": "bing-chat-for-all-browsers",
"main": "index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion public/chrome.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"manifest_version": 3,
"name": "Bing Chat for All Browsers",
"description": "Bing Chat for All Browsers",
"version": "1.0.1",
"version": "1.0.2",
"icons": {
"16": "icon16.png",
"32": "icon32.png",
Expand Down
2 changes: 1 addition & 1 deletion public/firefox.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"manifest_version": 2,
"name": "Bing Chat for All Browsers",
"description": "Bing Chat for All Browsers",
"version": "1.0.1",
"version": "1.0.2",
"background": {
"scripts": ["js/background.js"]
},
Expand Down
Binary file modified release/chrome.zip
Binary file not shown.
Binary file modified release/firefox.zip
Binary file not shown.
2 changes: 1 addition & 1 deletion src/background.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ chrome.webRequest.onBeforeSendHeaders.addListener(
if (!requestHeaders) return undefined
const newHeaders = requestHeaders.map((header) => {
if (header.name.toLowerCase() === 'user-agent') {
header.value = DESKTOP_UA
if (header.value?.toLowerCase().includes('mobile')) header.value = MOBILE_UA
else header.value = DESKTOP_UA
}
return header
})
Expand Down

0 comments on commit ed3cd75

Please sign in to comment.