Skip to content

Commit

Permalink
update for public preview issue
Browse files Browse the repository at this point in the history
  • Loading branch information
vishnubansaltarento committed Aug 11, 2024
1 parent a9d022c commit 2ca8743
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions project/ws/viewer/src/lib/plugins/html/html.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ export class HtmlComponent implements OnInit, OnChanges, OnDestroy {
)
} else {
// `${this.htmlContent.streamingUrl}/${this.htmlContent.initFile}?timestamp='${new Date().getTime()}`)
if(this.forPreview) {
if (this.forPreview) {
this.iframeUrl = this.domSanitizer.bypassSecurityTrustResourceUrl(
// tslint:disable-next-line:max-line-length
`${this.generateUrl(this.htmlContent.streamingUrl)}?timestamp='${new Date().getTime()}`
Expand All @@ -372,7 +372,7 @@ export class HtmlComponent implements OnInit, OnChanges, OnDestroy {
`${this.generateUrl(this.htmlContent.streamingUrl)}/${this.htmlContent.initFile}?timestamp='${new Date().getTime()}`
)
}

}
} else {
if (environment.production) {
Expand Down Expand Up @@ -553,5 +553,4 @@ export class HtmlComponent implements OnInit, OnChanges, OnDestroy {
return this.forPreview ? oldUrl : newUrl
}


}

0 comments on commit 2ca8743

Please sign in to comment.