Update app when available
This commit is contained in:
parent
1edebbc35b
commit
04bb40cb2a
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue