mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-06 22:40:14 -05:00
Hide announcement bar script if visibility wasn't chosen
no issue
This commit is contained in:
parent
a22317305e
commit
26abeb0ad2
1 changed files with 2 additions and 1 deletions
|
@ -89,8 +89,9 @@ function getSearchHelper(frontendKey) {
|
|||
|
||||
function getAnnouncementBarHelper(data) {
|
||||
const preview = data?.site?._preview;
|
||||
const isFilled = settingsCache.get('announcement_content') && settingsCache.get('announcement_visibility').length;
|
||||
|
||||
if (!settingsCache.get('announcement_content') && !preview) {
|
||||
if (!isFilled && !preview) {
|
||||
return '';
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue