Skip to content

Commit

Permalink
Fix logo logic
Browse files Browse the repository at this point in the history
  • Loading branch information
tmcconechy committed Sep 21, 2023
1 parent 5853d30 commit 4af57fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/node/build-icons.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ function optimizeSVGs(src) {
svgFile = svgFile.replaceAll('#000', 'currentColor');
const hasStroke = svgFile.indexOf('stroke="currentColor"') > -1;
const isEmpty = filepath.indexOf(`icons${path.sep}empty`) > 1;
const isLogo = filepath.indexOf(`logo-`) > 1;
const isLogo = path.basename(filepath).indexOf(`logo-`) > 1 || path.basename(filepath) === 'logo';
const isClassic = filepath.indexOf(`theme-classic`) > 1;

if (hasStroke && !isEmpty && !isLogo) {
Expand Down

0 comments on commit 4af57fe

Please sign in to comment.