From db3195a0f462d215cb5c746ffd7af07699d66181 Mon Sep 17 00:00:00 2001 From: NandiniAV Date: Thu, 30 Jun 2022 19:05:21 +0530 Subject: [PATCH] updated sccrom url condition --- project/ws/viewer/src/lib/plugins/html/html.component.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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 671ffa0a5..a4f681d8a 100755 --- a/project/ws/viewer/src/lib/plugins/html/html.component.ts +++ b/project/ws/viewer/src/lib/plugins/html/html.component.ts @@ -164,8 +164,15 @@ export class HtmlComponent implements OnInit, OnChanges, OnDestroy { // ) // } if (this.htmlContent.streamingUrl && this.htmlContent.initFile) { - this.iframeUrl = this.domSanitizer.bypassSecurityTrustResourceUrl( + if (this.htmlContent.streamingUrl.includes('latest')) { + this.iframeUrl = this.domSanitizer.bypassSecurityTrustResourceUrl( + // tslint:disable-next-line:max-line-length + `${environment.azureHost}/${environment.azureBucket}/content/html/${this.htmlContent.identifier}-latest/index.html?timestamp = '${new Date().getTime()}` + ) + } else { + this.iframeUrl = this.domSanitizer.bypassSecurityTrustResourceUrl( `${this.htmlContent.streamingUrl}/${this.htmlContent.initFile}?timestamp='${new Date().getTime()}`) + } } else { if (environment.production) { this.iframeUrl = this.domSanitizer.bypassSecurityTrustResourceUrl(