Update app when available

This commit is contained in:
William Brawner 2020-08-16 10:51:21 +00:00
parent 1edebbc35b
commit 04bb40cb2a

View file

@ -45,6 +45,8 @@ export class AppComponent {
updates.available.subscribe(event => {
console.log('current version is', event.current);
console.log('available version is', event.available);
// TODO: Prompt user to click something to update
updates.activateUpdate();
});
updates.activated.subscribe(event => {
console.log('old version was', event.previous);