Skip to content

Commit

Permalink
Added webp and optional token config
Browse files Browse the repository at this point in the history
  • Loading branch information
Satya Deep Maheshwari committed Aug 25, 2023
1 parent 239f049 commit 363b693
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions blocks/aem-asset-selector/aem-asset-selector-util.js
Original file line number Diff line number Diff line change
Expand Up @@ -420,6 +420,10 @@ export async function renderAssetSelectorWithImsFlow(cfg) {
label: 'GIF',
value: 'image/gif',
},
{
label: 'WEBP',
value: 'image/webp',
},
],
columns: 2,
},
Expand All @@ -436,6 +440,9 @@ export async function renderAssetSelectorWithImsFlow(cfg) {
if (cfg['ims-org-id']) {
assetSelectorProps.imsOrg = cfg['ims-org-id'];
}
if (cfg['ims-token']) {
assetSelectorProps.imsToken = cfg['ims-token'];
}

// eslint-disable-next-line no-undef
PureJSSelectors.renderAssetSelectorWithAuthFlow(getAssetSelector(), assetSelectorProps);
Expand Down

0 comments on commit 363b693

Please sign in to comment.