Skip to content

Commit e217641

Browse files
committed
Remove console.log from localStorage event listener
This change removes an unnecessary console.log statement from the localStorage event listener in the home component. It helps clean up the console output and improves code readability.
1 parent 5a88227 commit e217641

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

src/app/pages/home/home.component.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ export class HomeComponent implements OnInit {
3232

3333
@HostListener('window:storage')
3434
localStorageEventListener(e: StorageEvent): void {
35-
console.log(e.key);
3635
this.#messages.update((prev) => JSON.parse(localStorage.getItem('messages')!) || []);
3736
this.#users.update((prev) => JSON.parse(localStorage.getItem('users')!) || []);
3837
}

0 commit comments

Comments
 (0)