Skip to content

Commit

Permalink
unacms#4480 Install updated service worker immediately
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Trofimov committed Sep 26, 2023
1 parent 8ca5bb1 commit 4e7dc52
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sw.js.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@

// On install, cache core assets
self.addEventListener('install', function (event) {
self.skipWaiting();
// Cache core assets
event.waitUntil((async () => {
caches.open('<?php echo $sCacheName; ?>').then(function (cache) {
Expand Down

0 comments on commit 4e7dc52

Please sign in to comment.