From a720a96486af222ca87c25491cde45a381e733f1 Mon Sep 17 00:00:00 2001 From: Tania Mathern Date: Thu, 24 Aug 2023 09:05:42 -0700 Subject: [PATCH] Make linter happy --- blocks/aem-asset-selector/aem-asset-selector-util.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/blocks/aem-asset-selector/aem-asset-selector-util.js b/blocks/aem-asset-selector/aem-asset-selector-util.js index 896b6224b..2fa658909 100644 --- a/blocks/aem-asset-selector/aem-asset-selector-util.js +++ b/blocks/aem-asset-selector/aem-asset-selector-util.js @@ -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']; @@ -277,7 +277,7 @@ async function convertImage(assetPublicUrl, targetMimeType='image/png', asset) { * @returns {Promise} Resolves when the item has been written to the clipboard. */ async function copyToClipboardWithBinary(assetPublicUrl, mimeType, asset) { - let clipboardOptions = {}; + const clipboardOptions = {}; if (!CLIPBOARD_SUPPORTED_BINARY_MIMETYPES.includes(mimeType)) { const clipboardTargetMimetype = 'image/png';