Skip to content

Commit

Permalink
Testing and fixes, new branch for merge
Browse files Browse the repository at this point in the history
  • Loading branch information
cameronrr committed Feb 14, 2021
1 parent 7257b49 commit c909a20
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/files/manifest.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export const createManifest = async (context, config, queue, options) => {
const manifestDest = path.join(config.outputDir, options.manifestPath);
const iconsDir = path.join(config.outputDir, options.staticAssetsDir);
const iconName = options.icon.split('/').slice(-1)[0];
const maskableIconName = typeof options.maskableIcon === 'string'
let maskableIconName = typeof options.maskableIcon === 'string'
? options.maskableIcon.split('/').slice(-1)[0]
: null

Expand Down Expand Up @@ -46,7 +46,7 @@ export const createManifest = async (context, config, queue, options) => {

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

// always return a single promise
Expand Down

0 comments on commit c909a20

Please # to comment.