We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 960e98b commit a073811Copy full SHA for a073811
src/scripts/swUnregister.ts
@@ -1,3 +1,4 @@
1
+//之前博客的serviceWorker可能残留在访问过的用户浏览器中,清理很麻烦,所以在这里加个校验帮用户清理
2
if ("serviceWorker" in navigator) {
3
console.log("has sw");
4
navigator.serviceWorker.getRegistrations().then((reg) => {
0 commit comments