Skip to content

Commit 154036a

Browse files
Open webpage on install and uninstall
1 parent 92d6c7e commit 154036a

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"manifest_version": 2,
33
"name": "Gitpod - Dev Environments in a Browser Tab",
44
"short_name": "Gitpod",
5-
"version": "1.7",
5+
"version": "1.8",
66
"description": "Describe your dev environment as code and get fully prebuilt dev environments for any GitLab, GitHub and Bitbucket project.",
77
"icons": {
88
"16": "icons/gitpod-logo-16.png",

src/background.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,10 @@ async function gitpodifyCurrentTab() {
1818
}
1919

2020
browser.browserAction.onClicked.addListener(gitpodifyCurrentTab)
21+
22+
browser.runtime.onInstalled.addListener(details => {
23+
if (details.reason == "install") {
24+
window.open("https://www.gitpod.io/extension-activation/");
25+
}
26+
});
27+
browser.runtime.setUninstallURL("https://www.gitpod.io/extension-uninstall/");

0 commit comments

Comments
 (0)