Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: don't remove nocache at start of content script #252

Merged
merged 1 commit into from
Sep 10, 2024

Conversation

dylandepass
Copy link
Member

@dylandepass dylandepass commented Sep 10, 2024

Fixes: #251

Removing the nocache at the start of the content script was causing checkTab to be called multiple times in a row which resulted in the aem-sidekick element getting injected into the page multiple times. Multiple events were fired before the element was added to page, our check to make sure not to add it twice was then failing.

const sidekick = document.querySelector('aem-sidekick'); is still undefined as these events are fired.

@dylandepass dylandepass requested a review from rofe September 10, 2024 19:22
@dylandepass dylandepass changed the base branch from main to release-sept11 September 10, 2024 20:04
@dylandepass dylandepass merged commit 70f6617 into release-sept11 Sep 10, 2024
6 checks passed
@dylandepass dylandepass deleted the fix-251 branch September 10, 2024 20:06
rofe pushed a commit that referenced this pull request Sep 12, 2024
## [1.31.3](v1.31.2...v1.31.3) (2024-09-12)

### Bug Fixes

* don't remove nocache at start of content script ([#252](#252)) ([481e499](481e499))
* obsolete success toasts ([#256](#256)) ([69180a6](69180a6))
* update right side width calculation ([#257](#257)) ([8c5b759](8c5b759))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Custom JSON preview occasionally renders a blank page
2 participants