From 991eb17d1a2ad53999387e2173569e2ba34405ff Mon Sep 17 00:00:00 2001 From: vishnubansaltarento Date: Sun, 11 Aug 2024 13:48:09 +0530 Subject: [PATCH] update for public preview --- .../viewer-secondary-top-bar.component.ts | 4 ++-- project/ws/viewer/src/lib/plugins/html/html.component.ts | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) 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