Skip to content

Commit

Permalink
fix(PWA): prompt a message when a new ServiceWorker is avaiable (#27)
Browse files Browse the repository at this point in the history
The implementation was already done but was not triggered
  • Loading branch information
fidelepalouki authored and manekinekko committed Dec 10, 2018
1 parent 24b7937 commit ad16e51
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/app/app.component.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
import { Component, OnInit } from '@angular/core';
import { environment } from 'src/environments/environment';
import { PromptUpdateService } from './prompt-update.service';

@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css']
})
export class AppComponent {
version = environment.version
version = environment.version;

constructor(private promptUpdateService: PromptUpdateService) {
this.promptUpdateService.check();
}
}

0 comments on commit ad16e51

Please sign in to comment.