diff --git a/src/module-elasticsuite-tracker/view/frontend/templates/config.phtml b/src/module-elasticsuite-tracker/view/frontend/templates/config.phtml index c13adcb4c..9867de89a 100644 --- a/src/module-elasticsuite-tracker/view/frontend/templates/config.phtml +++ b/src/module-elasticsuite-tracker/view/frontend/templates/config.phtml @@ -38,7 +38,7 @@ if ($block->isEnabled()) { $userConsentScript = $this->escapeJsQuote($block->getUserConsentScript()); $userConsentConfig = $jsonHelper->jsonEncode($block->getUserConsentConfig()); - $scriptString = "//isEnabled()) { $scriptString .= "}"; $scriptString .= "});"; $scriptString .= "}catch(err){;}\n"; - $scriptString .= "//]]>\n"; echo /* @noEscape */ $secureRenderer->renderTag('script', [], $scriptString, false); }