asdasd
All checks were successful
Deploy / deploy-staging (push) Successful in 6s
Deploy / deploy-production (push) Has been skipped

This commit is contained in:
2026-04-27 01:10:43 +02:00
parent 0858d33f38
commit 42dd155904

View File

@@ -400,8 +400,9 @@ function module_shell_header(string $module, array $options = []): string
if ($title !== '') {
$moduleTitle = trim((string) ($design['title'] ?? ucfirst($module)));
$selector = '.home-hero[data-module-name="' . $module . '"] .brand-copy h1';
$script = '(function(){'
. 'var root=document.querySelector(".home-hero[data-module-name=' . json_encode($module, JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES) . '] .brand-copy h1");'
. 'var root=document.querySelector(' . json_encode($selector, JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES) . ');'
. 'if(!root){return;}'
. 'var old=root.querySelector(".module-page-context");'
. 'if(old){old.remove();}'