diff --git a/apps/NwaifuAnime/src/app/app.component.html b/apps/NwaifuAnime/src/app/app.component.html
index f333933..6bbd915 100644
--- a/apps/NwaifuAnime/src/app/app.component.html
+++ b/apps/NwaifuAnime/src/app/app.component.html
@@ -1,11 +1,3 @@
-@if (serviceWorkerEnabled) {
- @if (hasUpdate) {
-
Update available
-
- } @else {
- Update not available
- }
-}
+ @if (this.swEnabled && this.swHasUpdate) {
+
+ }
| null = null;
private destroy$ = new Subject();
+ constructor(private swService: AppService) {}
+
+ get swEnabled() {
+ return this.swService.serviceWorkerEnabled;
+ }
+
+ swUpdate() {
+ this.swService.update();
+ }
+
+ get swHasUpdate() {
+ return this.swService.isUpdateAvailable;
+ }
+
@HostListener("window:click", ["$event"])
toggleProfileMenu(event: MouseEvent) {
if (this.profileBtn && this.profileBtn.nativeElement.contains(event.target as Node)) {