diff --git a/dashboard/src/directives/highlightjs.ts b/dashboard/src/directives/highlightjs.ts index 2daadb48..e83dfdb1 100644 --- a/dashboard/src/directives/highlightjs.ts +++ b/dashboard/src/directives/highlightjs.ts @@ -1,10 +1,10 @@ -import Vue from "vue"; import hljs from "highlight.js/lib/core"; +import Vue from "vue"; Vue.directive("highlightjs", { bind(el, binding) { - if(!el.classList.contains("plain")) { - hljs.highlightElement(el); - }; + if (!el.classList.contains("plain")) { + hljs.highlightElement(el); + } }, }); diff --git a/dashboard/src/init-vue.ts b/dashboard/src/init-vue.ts index e6705379..6a8434fb 100644 --- a/dashboard/src/init-vue.ts +++ b/dashboard/src/init-vue.ts @@ -10,8 +10,8 @@ import "highlight.js/styles/base16/ocean.css"; import { router } from "./routes"; import { RootStore } from "./store"; -import "./directives/trim-indents"; import "./directives/highlightjs"; +import "./directives/trim-indents"; import App from "./components/App.vue";