Skip to content

Commit

Permalink
Fix bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
AshurovG committed Dec 16, 2024
1 parent bebd828 commit eab9078
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
9 changes: 0 additions & 9 deletions public/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,5 @@ root.appendChild(footerElement);
root.appendChild(notifierElement);
root.appendChild(previewElement);

if ('serviceWorker' in navigator) {
navigator.serviceWorker
.register('/sw.js', { scope: '/' })
.then(() => console.log('serviceWorker has been registered'))
.catch((err) => {
console.log('SW ERR: ', err);
});
}

initialStore.start();
router.start();
1 change: 1 addition & 0 deletions public/store/UserStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ class UserStore {
this.#user.username = '';
this.#user.avatar = '';
this.#user.id = 0;
this.#user.isPremium = false;

this.#isUserLoading = false;
this.#isUserLoadingEmmiter.set(false);
Expand Down

0 comments on commit eab9078

Please sign in to comment.