Check for updates at every page load
This commit is contained in:
parent
4acf13ba0d
commit
3fec73d556
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue