From 2575d6cbc52aef80e252365fa27211bc4bcfb123 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Fri, 29 Dec 2023 13:15:03 +0100 Subject: [PATCH] [Extensions UI] Fix `hljs.highlight` call to match new API. --- .../src/components/panels/Extensions/Install.vue | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/platypush/backend/http/webapp/src/components/panels/Extensions/Install.vue b/platypush/backend/http/webapp/src/components/panels/Extensions/Install.vue index 1054c7fa8..d12cefc0d 100644 --- a/platypush/backend/http/webapp/src/components/panels/Extensions/Install.vue +++ b/platypush/backend/http/webapp/src/components/panels/Extensions/Install.vue @@ -86,15 +86,15 @@ export default { highlightedInstallCmd() { return ( - this.installCmd ? hljs.highlight( + this.installCmd ? this.extension.deps.install_cmd .map((cmd) => `$ ${cmd}`) .join('\n') - .trim() - ).value : - '# No extra installation steps required', - {language: 'bash'} + .trim() : + '# No extra installation steps required', + {language: 'bash'} + ).value ) }, },