mirror of
https://github.com/flarum/framework.git
synced 2025-02-21 10:25:42 +08:00
Fix JavaScript style
This commit is contained in:
parent
a54c6376d8
commit
1f86514326
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user