Skip to content

Commit 7af80ea

Browse files
authored
Hide in bootstrap4
If the CSP policy is on, the style wouldn't work. So if the project use Bootstrap 4 or Bootstrap 3, it will be better to add thes classes.
1 parent 63d715b commit 7af80ea

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

system/Honeypot/Honeypot.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ protected function prepareTemplate(string $template): string
124124

125125
if ($this->config->hidden)
126126
{
127-
$template = '<div style="display:none">' . $template . '</div>';
127+
$template = '<div style="display:none" class="hidden d-none">' . $template . '</div>';
128128
}
129129
return $template;
130130
}

0 commit comments

Comments
 (0)