Skip to content

Commit 4ed6821

Browse files
committed
Enable users to visit gitpod workspaces when they are in gitpod.io
1 parent c8137e2 commit 4ed6821

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

background.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
const forcePopup = ({ id, url }) => {
1414
if (/https?:\/\/(github|gitlab).com\/.*\/.*/.test(url) ||
15-
/https:\/\/gitpod.io\/workspaces\/.*/.test(url)) {
15+
/https?:\/\/gitpod.io\/.*/.test(url)) {
1616
chrome.pageAction.show(id);
1717
}
1818
};
@@ -27,7 +27,7 @@ chrome.tabs.onActivated.addListener(({ tabId }) => {
2727

2828
chrome.pageAction.onClicked.addListener(({ url }) => {
2929
let popupUrl = `https://gitpod.io/#${url}`;
30-
if(/https:\/\/gitpod.io\/workspaces\/.*/.test(url)) {
30+
if(/https?:\/\/gitpod.io\/.*/.test(url)) {
3131
popupUrl = 'https://gitpod.io/workspaces/';
3232
}
3333
chrome.windows.create({ url: popupUrl, type: 'popup' });

manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"tabs",
1414
"*://github.com/*/*",
1515
"*://gitlab.com/*/*",
16-
"https://gitpod.io/workspaces/"
16+
"*://gitpod.io/*"
1717
],
1818
"background": {
1919
"scripts": ["background.js"],

0 commit comments

Comments
 (0)