Skip to content

Commit

Permalink
Merge pull request #4533 from nextcloud/backport/4471/stable31
Browse files Browse the repository at this point in the history
[stable31] feat: do not send logo css if value not provided
  • Loading branch information
elzody authored Feb 26, 2025
2 parents 0efde0f + 76a7584 commit 3bba4b2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/helpers/coolParameters.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,9 @@ const generateCSSVarTokens = () => {
str += '--nc-logo-background=' + (logoBgColor === '' ? 'transparent' : logoBgColor) + ';'

const logoDisplay = window.getComputedStyle(rootEl).getPropertyValue('--nc-logo-display')
str += '--nc-logo-display=' + (logoDisplay === '' ? 'block' : logoDisplay) + ';'
if (logoDisplay) {
str += `--nc-logo-display=${logoDisplay};`
}

return str.replace(/["']/g, '\\\'')
}
Expand Down

0 comments on commit 3bba4b2

Please sign in to comment.