Update `createOptimizedPicture` & Add `getOrigin`
Open
- Dominant language
- HTML
- Stars
- 5
- Forks
- 11
- Avg merge
- 9h 50m
- Merged PRs (30d)
- 4
Description
Given that this is [a known issue](https://www.aem.live/docs/sidekick-library#use-of-windowlocation) in the Sidekick Library. The `createOptimizedPicture` should implement the suggested solution, and `aem.js` should expose the `getOrigin` function. This way all future projects don't have to be patched.
Contributor guide
Research direction
Locate createOptimizedPicture and aem.js in the repository, then read the linked Sidekick Library guidance about window.location and getOrigin. Update createOptimizedPicture according to that suggested solution and expose getOrigin from aem.js; done means future projects no longer need this patch.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- web-dev
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100