Skip to content
This repository has been archived by the owner on Mar 7, 2023. It is now read-only.

Commit

Permalink
fix(sw): update exp 11
Browse files Browse the repository at this point in the history
  • Loading branch information
rhahao authored May 14, 2022
1 parent b9736f8 commit 617e8b8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/serviceWorkerRegistration.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ function registerValidSW(swUrl, config) {
installingWorker.onstatechange = () => {
console.log(installingWorker.state);
if (installingWorker.state === 'installed') {
console.log(registration);
const waitingWorker = registration.waiting;
if (waitingWorker) {
// At this point, the updated precached content has been fetched,
Expand Down

0 comments on commit 617e8b8

Please sign in to comment.