Skip to content
Snippets Groups Projects
Commit 013d296e authored by Quoc Huy Nguyen Dinh's avatar Quoc Huy Nguyen Dinh
Browse files

Only run highlighter client side

parent 781d92c1
No related branches found
No related tags found
1 merge request!234Add highlight syntax to code blocks in blog posts
...@@ -136,7 +136,9 @@ class PostFull extends React.Component { ...@@ -136,7 +136,9 @@ class PostFull extends React.Component {
} }
} }
hljs.highlightAll(); if (process.env.BROWSER) {
hljs.highlightAll();
}
} }
fbShare(e) { fbShare(e) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment