build: upgrade to angular v12

This commit is contained in:
Jovan Krunić
2021-09-21 06:51:33 +00:00
parent e5c227073a
commit 3c7ada4eea
33 changed files with 8960 additions and 8806 deletions

View File

@@ -44,7 +44,7 @@ export class ScheduleProvider implements OnDestroy {
private _uuidSubscription?: Subscription;
constructor(private readonly dataProvider: DataProvider) {
window.addEventListener('storage', this.storageEventListener.bind(this));
window.addEventListener('storage', this.storageListener);
}
/**
@@ -87,9 +87,9 @@ export class ScheduleProvider implements OnDestroy {
}
/**
* Listen to updates in local storage
* What to do when local storage updates
*/
private storageEventListener(event: StorageEvent) {
private storageEventHandler(event: StorageEvent) {
if (
event.newValue &&
event.storageArea === localStorage &&
@@ -99,6 +99,11 @@ export class ScheduleProvider implements OnDestroy {
}
}
/**
* Listen to updates in local storage
*/
private storageListener = this.storageEventHandler.bind(this);
/**
* Load Date Series
*/
@@ -192,6 +197,6 @@ export class ScheduleProvider implements OnDestroy {
*/
ngOnDestroy(): void {
this._uuidSubscription?.unsubscribe();
window.removeEventListener('storage', this.storageEventListener.bind(this));
window.removeEventListener('storage', this.storageListener);
}
}