From 1bf17126849f97494e85c2649954b05e436b8367 Mon Sep 17 00:00:00 2001 From: Bad Date: Sat, 31 Oct 2020 18:24:05 +0100 Subject: [PATCH] Fix dynamic import with relative paths --- src/js/events/components.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/events/components.js b/src/js/events/components.js index 7e1b498..bb0cc63 100644 --- a/src/js/events/components.js +++ b/src/js/events/components.js @@ -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)) } }