Fix dynamic import with relative paths
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing

This commit is contained in:
Bad 2020-10-31 18:24:05 +01:00
parent 0738ce4cb1
commit 1bf1712684

View file

@ -4,7 +4,7 @@ const {lazyLoad} = require("../lazy-load-module")
class HighlightedCode extends ElemJS {
constructor(code) {
super(code)
lazyLoad("/static/hljs.js").then(hljs => hljs.highlightBlock(this.element))
lazyLoad("./static/hljs.js").then(hljs => hljs.highlightBlock(this.element))
}
}