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 24, 2023
1 parent 8382343 commit a720a96
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 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 All @@ -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';
Expand Down

0 comments on commit a720a96

Please sign in to comment.