Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
feat(icon): default purpose to any + maskable
  • Loading branch information
pi0 committed Aug 13, 2020
1 parent d115b08 commit 30f0f63
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions docs/content/en/icon.md
Expand Up @@ -48,13 +48,13 @@ Will return an empty string when no icon in the given size is available (eg. whe
Name of property for accessible icons.

**purpose**
- Default: null
- Default: `['any', 'maskable']`

Array or string of icon purpose.

Example:

```js
purpose: [ 'badge', 'maskable' ]
// or
purpose: 'maskable'
```

Expand Down
2 changes: 1 addition & 1 deletion lib/icon/module.js
Expand Up @@ -37,7 +37,7 @@ async function run (pwa, _emitAssets) {
iconProperty: '$icon',
publicPath,
iconSrc: null,
purpose: null,
purpose: ['any', 'maskable'],

_iconHash: null,
_cacheDir: null,
Expand Down

0 comments on commit 30f0f63

Please sign in to comment.