File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -113,7 +113,7 @@ if (_isServiceWorkerLoaderPage() && 'serviceWorker' in navigator) {
113113 console . log ( `Service worker loader: clear cache updatedFilesCount: ` , updatedFilesCount ) ;
114114 window . Phoenix . cache . updatePendingReloadReason = "clearCache" ;
115115 window . Phoenix . cache . showUpdateDialogue = true ;
116- window . Phoenix . cache . updatedFilesCount = updatedFilesCount ;
116+ window . Phoenix . cache . updatedFilesCount = updatedFilesCount || 0 ;
117117 localStorage . setItem ( cacheKey , newCacheVersion ) ;
118118 doneCB ( ) ;
119119 } ) . catch ( err => {
@@ -142,7 +142,7 @@ if (_isServiceWorkerLoaderPage() && 'serviceWorker' in navigator) {
142142 } ) . then ( ( { updatedFilesCount} ) => {
143143 console . log ( `Service worker loader: refresh cache updatedFilesCount: ` , updatedFilesCount ) ;
144144 window . Phoenix . cache . updatePendingReloadReason = "refreshCache" ;
145- window . Phoenix . cache . updatedFilesCount = updatedFilesCount ;
145+ window . Phoenix . cache . updatedFilesCount = updatedFilesCount || 0 ;
146146 doneCB ( ) ;
147147 } ) . catch ( err => {
148148 console . error ( "Service worker loader: Error while triggering refresh cache" , err ) ;
You can’t perform that action at this time.
0 commit comments