Skip to content

Commit

Permalink
update for public preview
Browse files Browse the repository at this point in the history
  • Loading branch information
vishnubansaltarento committed Aug 11, 2024
1 parent 3815dc4 commit 991eb17
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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`)
}

}
}

Expand Down
8 changes: 4 additions & 4 deletions project/ws/viewer/src/lib/plugins/html/html.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 991eb17

Please sign in to comment.