Skip to content

Commit

Permalink
Merge pull request #2407 from sunbird-cb/cios-certification-issue-fix
Browse files Browse the repository at this point in the history
Cios certification issue fix
  • Loading branch information
vishnubansaltarento authored Aug 11, 2024
2 parents 961748e + 2ca8743 commit 26bb48f
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 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,8 @@ 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 26bb48f

Please sign in to comment.