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 24
Browse files Browse the repository at this point in the history
  • Loading branch information
rhahao authored May 15, 2022
1 parent e288785 commit 5c294c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/root/WithServiceWorker.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,8 @@ export default class WithServiceWorker extends Component {
registration.onupdatefound = () => {
const installingWorker = registration.installing;
installingWorker.onstatechange = () => {
console.log(installingWorker)
if (installingWorker.state === 'installed') {
console.log(registration);
console.log(navigator.serviceWorker);
if (navigator.serviceWorker.controller) {
onUpdated && onUpdated();
Expand Down

0 comments on commit 5c294c3

Please sign in to comment.