diff --git a/project/ws/viewer/src/lib/components/viewer-secondary-top-bar/viewer-secondary-top-bar.component.ts b/project/ws/viewer/src/lib/components/viewer-secondary-top-bar/viewer-secondary-top-bar.component.ts index 458cd078e..98d00b50c 100644 --- a/project/ws/viewer/src/lib/components/viewer-secondary-top-bar/viewer-secondary-top-bar.component.ts +++ b/project/ws/viewer/src/lib/components/viewer-secondary-top-bar/viewer-secondary-top-bar.component.ts @@ -352,12 +352,12 @@ export class ViewerSecondaryTopBarComponent implements OnInit, OnDestroy { }) } } else { - if(window.location.href.includes('editMode=true')) { + if (window.location.href.includes('editMode=true')) { this.router.navigateByUrl(`public/toc/${this.collectionId}/overview?editMode=true`) } else { this.router.navigateByUrl(`public/toc/${this.collectionId}/overview`) } - + } } diff --git a/project/ws/viewer/src/lib/plugins/html/html.component.ts b/project/ws/viewer/src/lib/plugins/html/html.component.ts index aa5466a81..e086f1005 100755 --- a/project/ws/viewer/src/lib/plugins/html/html.component.ts +++ b/project/ws/viewer/src/lib/plugins/html/html.component.ts @@ -133,9 +133,9 @@ export class HtmlComponent implements OnInit, OnChanges, OnDestroy { // this.fireRealTimeProgress(this.htmlContent) // // this.store.clearAll() // } - if(this.sub) { + if (this.sub) { this.sub.unsubscribe() - } + } } private fireRealTimeProgress(htmlContent: any) { @@ -252,10 +252,10 @@ export class HtmlComponent implements OnInit, OnChanges, OnDestroy { // } // call fireRealTimeProgress func for LMS data and non-LMS data also this.fireRealTimeProgress(this.oldData) - if(this.sub) { + if (this.sub) { this.sub.unsubscribe() } - + this.ticks = 0 this.timer = timer(1000, 1000) // subscribing to a observable returns a subscription object