Skip to content

Commit

Permalink
Fix variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
cameronrr authored Feb 9, 2021
1 parent ecff62c commit 66c4b60
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/files/manifest.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,18 +32,18 @@ export const createManifest = async (context, config, queue, options) => {
}

// add and process { icon }
icons.push({src, type, sizes, purpose });
icons.push({src, type, sizes, purpose});
const results = [sharp(options.icon).resize(size, size).toFile(imagePath)]

// if maskableIcon is a string, then we need to process it as a separate maskable icon
if (options.maskableIcon && typeof options.maskableIcon === 'string') {
imagePath = path.join(iconsDir, rename(maskableIconName, { suffix: `-maskable-${sizes}` }))
src = path.relative(config.outputDir, imagePath);
type = 'image/' + iconName.split('.').slice(-1)[0];
type = 'image/' + maskableIconName.split('.').slice(-1)[0];
purpose = 'maskable'

// add and process { maskableIcon }
icons.push({src, type, sizes, purpose });
icons.push({src, type, sizes, purpose});
results.push(sharp(options.maskableIconName).resize(size, size).toFile(imagePath))
}

Expand Down

0 comments on commit 66c4b60

Please # to comment.