diff --git a/assets/scripts/features/syntaxhighlight/hljs.js b/assets/scripts/features/syntaxhighlight/hljs.js index 59516cf..6c4a944 100644 --- a/assets/scripts/features/syntaxhighlight/hljs.js +++ b/assets/scripts/features/syntaxhighlight/hljs.js @@ -1,3 +1,4 @@ import hljs from 'highlight.js'; +import * as params from '@params'; -hljs.highlightAll(); +hljs.highlightAll(params.syntaxhighlight?.hljs); diff --git a/assets/scripts/features/videoplayer/plyr.js b/assets/scripts/features/videoplayer/plyr.js index 516a518..85ac526 100644 --- a/assets/scripts/features/videoplayer/plyr.js +++ b/assets/scripts/features/videoplayer/plyr.js @@ -2,4 +2,4 @@ import Plyr from 'plyr'; import * as params from '@params'; const options = params.videoplayer?.plyr; -window.addEventListener('DOMContentLoaded', () => Plyr.setup('.js-player', options)); +window.addEventListener('DOMContentLoaded', () => Plyr.setup('.video-player', options));