Skip to content

Commit 6404c8f

Browse files
committed
✨ 添加卸载扩展后的调查页面
1 parent 6f2f000 commit 6404c8f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/app/service/service_worker/index.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,14 @@ export default class ServiceWorkerManager {
178178
});
179179
}
180180
});
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+
});
181189
}
182190
}
183191

0 commit comments

Comments
 (0)