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

Commit 7cdaa2e

Browse files
authored
Merge pull request #11 from anaclumos/new-tab-fix
2 parents 45ad8e3 + 349c29c commit 7cdaa2e

File tree

7 files changed

+33
-26
lines changed

7 files changed

+33
-26
lines changed

package-lock.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
22
"name": "bing-chat-for-all-browsers",
3-
"version": "1.0.3",
3+
"version": "1.0.4",
44
"description": "bing-chat-for-all-browsers",
55
"main": "index.js",
66
"scripts": {
77
"watch": "webpack --config webpack/webpack.dev.js --watch",
8-
"build": "$npm_execpath run clean && webpack --config webpack/webpack.chrome.js & webpack --config webpack/webpack.firefox.js",
8+
"build": "$npm_execpath run clean && webpack --config webpack/webpack.chrome.js && webpack --config webpack/webpack.firefox.js",
99
"clean": "rimraf release",
1010
"test": "npx jest",
1111
"style": "prettier --write \"**/*.{ts,tsx,json,js,jsx,css,scss,html,md}\"",

public/chrome.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"manifest_version": 3,
33
"name": "Bing Chat for All Browsers",
44
"description": "Bing Chat for All Browsers",
5-
"version": "1.0.3",
5+
"version": "1.0.4",
66
"icons": {
77
"16": "icon16.png",
88
"32": "icon32.png",

public/firefox.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"manifest_version": 2,
33
"name": "Bing Chat for All Browsers",
44
"description": "Bing Chat for All Browsers",
5-
"version": "1.0.3",
5+
"version": "1.0.4",
66
"background": {
77
"scripts": ["js/background.js"]
88
},

release/chrome.zip

-4 Bytes
Binary file not shown.

release/firefox.zip

-4 Bytes
Binary file not shown.

src/popup.tsx

+27-20
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,12 @@ const Popup = () => {
77
return (
88
<>
99
<a
10-
href="https://bing.com/chat"
11-
target="_blank"
12-
rel="noreferrer noopener nofollow"
13-
style={{ textDecoration: 'none' }}
10+
style={{ textDecoration: 'none', cursor: 'pointer' }}
11+
onClick={() => {
12+
chrome.tabs.create({
13+
url: 'https://bing.com/chat',
14+
})
15+
}}
1416
>
1517
<div style={{ display: 'grid', placeItems: 'center', width: '300px', height: '100px' }}>
1618
<button
@@ -44,34 +46,39 @@ const Popup = () => {
4446
>
4547
Found a Bug?{' '}
4648
<a
47-
href="https://github.com/anaclumos/bing-chat-for-all-browsers"
48-
target="_blank"
49-
rel="noreferrer noopener nofollow"
50-
style={{ color: 'black', textDecoration: 'underline' }}
49+
style={{ color: 'black', textDecoration: 'underline', cursor: 'pointer' }}
50+
onClick={() => {
51+
chrome.tabs.create({
52+
url: 'https://github.com/anaclumos/bing-chat-for-all-browsers',
53+
})
54+
}}
5155
>
5256
Let me know on GitHub
5357
</a>
54-
{'.'}
55-
<br />
56-
Leave us a review for{' '}
58+
{'. '}
59+
Or, Leave us a review for{' '}
5760
<a
58-
href="https://chrome.google.com/webstore/detail/bing-chat-for-all-browser/jofbglonpbndadajbafmmaklbfbkggpo"
59-
target="_blank"
60-
rel="noreferrer noopener nofollow"
61-
style={{ color: 'black', textDecoration: 'underline' }}
61+
style={{ color: 'black', textDecoration: 'underline', cursor: 'pointer' }}
62+
onClick={() => {
63+
chrome.tabs.create({
64+
url: 'https://chrome.google.com/webstore/detail/bing-chat-for-all-browser/jofbglonpbndadajbafmmaklbfbkggpo',
65+
})
66+
}}
6267
>
6368
Chrome
6469
</a>{' '}
6570
or{' '}
6671
<a
67-
href="https://addons.mozilla.org/en-US/firefox/addon/bing-chat-for-all-browsers/"
68-
target="_blank"
69-
rel="noreferrer noopener nofollow"
70-
style={{ color: 'black', textDecoration: 'underline' }}
72+
style={{ color: 'black', textDecoration: 'underline', cursor: 'pointer' }}
73+
onClick={() => {
74+
chrome.tabs.create({
75+
url: 'https://addons.mozilla.org/en-US/firefox/addon/bing-chat-for-all-browsers/',
76+
})
77+
}}
7178
>
7279
Firefox
7380
</a>
74-
.
81+
. Thank you!
7582
</p>
7683
</>
7784
)

0 commit comments

Comments
 (0)