diff --git a/CHANGELOG.md b/CHANGELOG.md index 8edd16f..41121cd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +## [1.3.1](https://github.com/adobe/aem-lib/compare/v1.3.0...v1.3.1) (2023-10-02) + + +### Bug Fixes + +* use correct codeBasePath (and test) ([#19](https://github.com/adobe/aem-lib/issues/19)) ([11dc7d3](https://github.com/adobe/aem-lib/commit/11dc7d37e551ba8e229c1147e1c5618f7fe84bf1)) + # [1.3.0](https://github.com/adobe/aem-lib/compare/v1.2.1...v1.3.0) (2023-09-27) diff --git a/dist/aem.js b/dist/aem.js index 6b58e22..af8f44a 100644 --- a/dist/aem.js +++ b/dist/aem.js @@ -404,7 +404,7 @@ function decorateIcon(span, prefix = '') { .substring(5); const img = document.createElement('img'); img.dataset.iconName = iconName; - img.src = `${window.codeBasePath}${prefix}/icons/${iconName}.svg`; + img.src = `${window.hlx.codeBasePath}${prefix}/icons/${iconName}.svg`; img.loading = 'lazy'; span.append(img); } diff --git a/package-lock.json b/package-lock.json index 14fd442..1126bc8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@adobe/aem-lib", - "version": "1.3.0", + "version": "1.3.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@adobe/aem-lib", - "version": "1.3.0", + "version": "1.3.1", "license": "Apache License 2.0", "dependencies": { "@adobe/helix-rum-js": "1.4.1" diff --git a/package.json b/package.json index 15bdc21..c1e1ec2 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@adobe/aem-lib", "private": true, - "version": "1.3.0", + "version": "1.3.1", "description": "AEM Library", "type": "module", "scripts": {