Skip to content

Commit

Permalink
- add comments
Browse files Browse the repository at this point in the history
- update deps
  • Loading branch information
chaitanyapotti committed May 28, 2021
1 parent 496e692 commit 3f9d631
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/registerServiceWorker.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ if (
process.env.VUE_APP_TORUS_BUILD_ENV === 'testing' ||
process.env.VUE_APP_TORUS_BUILD_ENV === 'lrc')
) {
log.info('non-integrity sw')
// if swIntegrity is not calculated
if (swIntegrity === ['SERVICE', 'WORKER', 'SHA', 'INTEGRITY'].join('_')) {
register({
Expand All @@ -162,6 +163,7 @@ if (
},
})
} else {
log.info('full integrity sw')
// Check on existing service worker registration(s)
// if there are errors, remove all service workers first
let swRegistrations
Expand Down

0 comments on commit 3f9d631

Please sign in to comment.