Skip to content

Commit

Permalink
fix: use correct file-prefix for download of expressive variants
Browse files Browse the repository at this point in the history
  • Loading branch information
skjalgepalg committed Sep 21, 2023
1 parent 972ea39 commit 20e246c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/readme.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,12 @@ setTimeout(function () {
for (const icon of icons) {
const type = icon.id.slice(4).split('-')[0] // Without nrk- and state
const isPreview = icon.id.includes('-preview')
const filePrefix = type === 'logo' || type === 'expressive' ? type : 'icon'
const isExpressive = icon.id.includes('-expressive')
const filePrefix = type === 'logo'
? type
: isExpressive
? 'expressive'
: 'icon'
const size = icon.viewBox.baseVal
const group = isPreview ? GROUPS.preview : (GROUPS[type] = GROUPS[type] || [])

Expand Down

0 comments on commit 20e246c

Please sign in to comment.