Skip to content

Commit

Permalink
Make linter happy
Browse files Browse the repository at this point in the history
  • Loading branch information
tmathern committed Aug 23, 2023
1 parent e6edd54 commit 2af6c8e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions blocks/aem-asset-selector/aem-asset-selector-util.js
Original file line number Diff line number Diff line change
Expand Up @@ -254,10 +254,10 @@ async function loadImageIntoHtmlElement(url) {
* @param {*} targetMimeType Target mimetype (target format)
* @returns A conversion promise resolving to a blob of the target mimetype
*/
async function convertImage(assetPublicUrl, targetMimeType='image/png', asset) {
async function convertImage(assetPublicUrl, targetMimeType, asset) {
const imageElement = await loadImageIntoHtmlElement(assetPublicUrl);

return new Promise(resolve => {
return new Promise((resolve) => {
const canvas = document.createElement('canvas');
canvas.width = asset['tiff:imageWidth'];
canvas.height = asset['tiff:imageLength'];
Expand Down

0 comments on commit 2af6c8e

Please sign in to comment.