Skip to content

Commit 5d4e974

Browse files
committed
Added open app.urls.uninstall on uninstall ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions/tree/main/chatgpt-widescreen]
1 parent 89e1e1a commit 5d4e974

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

chromium/extension/service-worker.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const appReady = (async () => {
66
// Init APP data
77
const app = {
88
version: chrome.runtime.getManifest().version,
9-
commitHashes: { app: '746f5f0' }, // for cached app.json + sites.json5
9+
commitHashes: { app: '89e1e1a' }, // for cached app.json + sites.json5
1010
runtime: (() => {
1111
return typeof chrome != 'undefined' && chrome.runtime ? (
1212
typeof browser != 'undefined' ? 'Firefox add-on'
@@ -18,6 +18,7 @@ const appReady = (async () => {
1818
const remoteAppData = await (await fetch(`${app.urls.resourceHost}/assets/data/app.json`)).json()
1919
Object.assign(app, { ...remoteAppData, urls: { ...app.urls, ...remoteAppData.urls }})
2020
chrome.storage.local.set({ app }) // save to browser storage
21+
chrome.runtime.setUninstallURL(app.urls.uninstall)
2122

2223
// Init SITES data
2324
const sites = Object.assign(Object.create(null),

firefox/extension/background.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// Init APP data
55
const app = {
66
version: chrome.runtime.getManifest().version,
7-
commitHashes: { app: '746f5f0' }, // for cached app.json + sites.json5
7+
commitHashes: { app: '89e1e1a' }, // for cached app.json + sites.json5
88
runtime: (() => {
99
return typeof chrome != 'undefined' && chrome.runtime ? (
1010
typeof browser != 'undefined' ? 'Firefox add-on'
@@ -16,6 +16,7 @@
1616
const remoteAppData = await (await fetch(`${app.urls.resourceHost}/assets/data/app.json`)).json()
1717
Object.assign(app, { ...remoteAppData, urls: { ...app.urls, ...remoteAppData.urls }})
1818
chrome.storage.local.set({ app }) // save to browser storage
19+
chrome.runtime.setUninstallURL(app.urls.uninstall)
1920

2021
// Init SITES data
2122
const sites = Object.assign(Object.create(null),

0 commit comments

Comments
 (0)