[UI] Fixed deprecated usage of the hljs.highlight API.

This commit is contained in:
Fabio Manganiello 2024-09-22 02:36:43 +02:00
parent f6b3d34eff
commit 91c66cdd48
Signed by untrusted user: blacklight
GPG key ID: D90FBA7F76362774

View file

@ -61,9 +61,9 @@ export default {
} }
return hljs.highlight( return hljs.highlight(
'yaml',
'# Currently loaded configuration\n' + '# Currently loaded configuration\n' +
this.curYamlConfig this.curYamlConfig,
{language: 'yaml'}
).value.trim() ).value.trim()
}, },
}, },