Check for updates at every page load

This commit is contained in:
Stefano Brilli 2020-03-23 19:16:22 +01:00
parent 4acf13ba0d
commit 3fec73d556
1 changed files with 1 additions and 0 deletions

View File

@ -95,6 +95,7 @@ function registerValidSW(swUrl: string, config?: Config) {
}
};
};
registration.update(); // Check for new version everytime we load the page
})
.catch(error => {
console.error('Error during service worker registration:', error);