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 991eb17 commit a9d022c
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions project/ws/viewer/src/lib/plugins/html/html.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -361,10 +361,18 @@ export class HtmlComponent implements OnInit, OnChanges, OnDestroy {
)
} else {
// `${this.htmlContent.streamingUrl}/${this.htmlContent.initFile}?timestamp='${new Date().getTime()}`)
this.iframeUrl = this.domSanitizer.bypassSecurityTrustResourceUrl(
// tslint:disable-next-line:max-line-length
`${this.generateUrl(this.htmlContent.streamingUrl)}?timestamp='${new Date().getTime()}`
)
if(this.forPreview) {
this.iframeUrl = this.domSanitizer.bypassSecurityTrustResourceUrl(
// tslint:disable-next-line:max-line-length
`${this.generateUrl(this.htmlContent.streamingUrl)}?timestamp='${new Date().getTime()}`
)
} else {
this.iframeUrl = this.domSanitizer.bypassSecurityTrustResourceUrl(
// tslint:disable-next-line:max-line-length
`${this.generateUrl(this.htmlContent.streamingUrl)}/${this.htmlContent.initFile}?timestamp='${new Date().getTime()}`
)
}

}
} else {
if (environment.production) {
Expand Down Expand Up @@ -541,7 +549,9 @@ export class HtmlComponent implements OnInit, OnChanges, OnDestroy {
newLink.push(chunk[i])
}
}
// const newUrl = newLink.join('/')
return oldUrl
const newUrl = newLink.join('/')
return this.forPreview ? oldUrl : newUrl
}


}

0 comments on commit a9d022c

Please sign in to comment.