We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6f2f000 commit 6404c8fCopy full SHA for 6404c8f
1 file changed
src/app/service/service_worker/index.ts
@@ -178,6 +178,14 @@ export default class ServiceWorkerManager {
178
});
179
}
180
181
+
182
+ // 监听扩展卸载事件
183
+ chrome.runtime.setUninstallURL(`${DocumentationSite}${localePath}/uninstall`, () => {
184
+ const lastError = chrome.runtime.lastError;
185
+ if (lastError) {
186
+ console.error("chrome.runtime.lastError in chrome.runtime.setUninstallURL:", lastError);
187
+ }
188
+ });
189
190
191
0 commit comments