Fix dynamic import with relative paths
This commit is contained in:
parent
0738ce4cb1
commit
1bf1712684
1 changed files with 1 additions and 1 deletions
|
@ -4,7 +4,7 @@ const {lazyLoad} = require("../lazy-load-module")
|
||||||
class HighlightedCode extends ElemJS {
|
class HighlightedCode extends ElemJS {
|
||||||
constructor(code) {
|
constructor(code) {
|
||||||
super(code)
|
super(code)
|
||||||
lazyLoad("/static/hljs.js").then(hljs => hljs.highlightBlock(this.element))
|
lazyLoad("./static/hljs.js").then(hljs => hljs.highlightBlock(this.element))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue