From 41d713446c2152d47943ddb0c841a9e36ca5a9db Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 15 Feb 2019 15:52:18 +0100 Subject: Lazy import some modules --- client/src/app/videos/+video-watch/comment/video-comment.component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'client/src/app/videos/+video-watch/comment') diff --git a/client/src/app/videos/+video-watch/comment/video-comment.component.ts b/client/src/app/videos/+video-watch/comment/video-comment.component.ts index aba7f9d1c..172eb0a39 100644 --- a/client/src/app/videos/+video-watch/comment/video-comment.component.ts +++ b/client/src/app/videos/+video-watch/comment/video-comment.component.ts @@ -85,8 +85,8 @@ export class VideoCommentComponent implements OnInit, OnChanges { ) } - private init () { - this.sanitizedCommentHTML = this.htmlRenderer.toSafeHtml(this.comment.text) + private async init () { + this.sanitizedCommentHTML = await this.htmlRenderer.toSafeHtml(this.comment.text) this.newParentComments = this.parentComments.concat([ this.comment ]) } -- cgit v1.2.3