From af2307868a144146ea0cfec4629c6328f36057f5 Mon Sep 17 00:00:00 2001 From: Toby Zerner Date: Mon, 31 Aug 2015 13:19:51 +0930 Subject: [PATCH] Fix JavaScript style --- js/forum/src/components/CommentPost.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/forum/src/components/CommentPost.js b/js/forum/src/components/CommentPost.js index eb179d888..ce78119bb 100644 --- a/js/forum/src/components/CommentPost.js +++ b/js/forum/src/components/CommentPost.js @@ -1,4 +1,4 @@ -/*global s9e*/ +/*global s9e, hljs*/ import Post from 'flarum/components/Post'; import classList from 'flarum/utils/classList'; @@ -60,7 +60,7 @@ export default class CommentPost extends Post { const contentHtml = this.isEditing() ? '' : this.props.post.contentHtml(); if (context.contentHtml !== contentHtml) { - if(typeof hljs === 'undefined') { + if (typeof hljs === 'undefined') { this.loadHljs(); } else { this.$('pre code').each(function(i, elm) {