diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index 8999d6b9c4..af8667211e 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -3,5 +3,5 @@ Please always provide the [GitHub issue(s)](../issues) your PR is for, as well a Fix # Test URLs: -- Before: https://main--{repo}--{owner}.hlx.page/ -- After: https://--{repo}--{owner}.hlx.page/ +- Before: https://main--aem-assets-boilerplate--hlxsites.hlx.page/aem-asset-selector +- After: https://--aem-assets-boilerplate--hlxsites.hlx.page/aem-asset-selector diff --git a/README.md b/README.md index 8e38fd5af1..2f22361b1d 100644 --- a/README.md +++ b/README.md @@ -8,8 +8,8 @@ Integration between AEM Asset Selector and AEM Franklin to make AEM assets avail ![High Level Flow](/resources/using-asset-selector-with-franklin.jpeg) ## Environments -- Preview: https://main--{repo}--{owner}.hlx.page/ -- Live: https://main--{repo}--{owner}.hlx.live/ +- Preview: [https://main--aem-assets-boilerplate--hlxsites.hlx.page/aem-asset-selector](https://main--aem-assets-boilerplate--hlxsites.hlx.page/aem-asset-selector) +- Live: [https://main--aem-assets-boilerplate--hlxsites.hlx.live/aem-asset-selector](https://main--aem-assets-boilerplate--hlxsites.hlx.live/aem-asset-selector) ## Installation diff --git a/blocks/aem-asset-selector/aem-asset-selector-util.js b/blocks/aem-asset-selector/aem-asset-selector-util.js index 43f208d34e..be4c2390de 100644 --- a/blocks/aem-asset-selector/aem-asset-selector-util.js +++ b/blocks/aem-asset-selector/aem-asset-selector-util.js @@ -53,8 +53,7 @@ export function init(cfg, callback) { } function onClose() { - const selectorDialog = document.getElementById('asset-selector-dialog'); - selectorDialog.close(); + document.getElementById('asset-selector-dialog').close(); } async function getAssetPublicUrl(url) { @@ -83,7 +82,6 @@ async function handleSelection(selection) { maxRendition = rendition; } }); - console.log('Selected rendition:', maxRendition.href); const assetPublicUrl = await getAssetPublicUrl(maxRendition.href.substring(0, maxRendition.href.indexOf('?'))); console.log('Asset public URL:', assetPublicUrl); diff --git a/package-lock.json b/package-lock.json index 84797a1118..c23bc9b6be 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@adobe/helix-project-boilerplate", - "version": "1.0.0", + "version": "1.2.2", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@adobe/helix-project-boilerplate", - "version": "1.0.0", + "version": "1.2.2", "license": "Apache License 2.0", "devDependencies": { "@babel/core": "7.21.0",