From 5248e2ec07f227f8fa1cf75cbace0f25664f72f4 Mon Sep 17 00:00:00 2001 From: Adam Paplinski Date: Mon, 30 Aug 2021 22:04:19 +0200 Subject: [PATCH] added support for urls from bitbucket.org gitpod.io works great with bitbucket. Let's support bitbucket.org repos with this great chrome extension. --- background.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/background.js b/background.js index 9a51c0e..5969d3f 100644 --- a/background.js +++ b/background.js @@ -24,7 +24,7 @@ chrome.tabs.onActivated.addListener(({ tabId }) => { chrome.pageAction.onClicked.addListener(({ url }) => { let popupUrl = 'https://gitpod.io/workspaces/?popup=true'; - if (/https?:\/\/(github|gitlab).com\/.*\/.*/.test(url)) { + if (/https?:\/\/(github\.com|gitlab\.com|bitbucket\.org)\/.*\/.*/.test(url)) { popupUrl = `https://gitpod.io/#${url}`; } chrome.windows.create({ url: popupUrl, type: 'popup' });