Skip to content

Commit

Permalink
build: ignore docs/public/service-worker.js file
Browse files Browse the repository at this point in the history
  • Loading branch information
fengyuanchen committed Jul 6, 2024
1 parent 4281c7f commit d9cff71
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@
cache
coverage
dist
docs/public
node_modules
1 change: 1 addition & 0 deletions .stylelintignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@
.temp
coverage
dist
docs/public
node_modules
2 changes: 1 addition & 1 deletion docs/public/service-worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ if ('serviceWorker' in navigator) {
caches.keys()
.then((keys) => Promise.all(keys.map((key) => caches.delete(key))))
.then(() => navigator.serviceWorker.getRegistrations())
.then((registrations) => Promise.all(registrations.map((registration) => registration.unregister())))
.then((registrations) => Promise.all(registrations.map((registration) => registration.unregister()))),
);
});
}

0 comments on commit d9cff71

Please sign in to comment.