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

use mainWindow instead of top to open links #548

Merged
merged 1 commit into from
Dec 26, 2021
Merged

Conversation

eglia
Copy link
Contributor

@eglia eglia commented Dec 21, 2021

Fixes hacs/integration#2351

This PR changes all uses of "top?.open" to "mainWindow.open" provided by the HA frontend. This allows the links to be opened when HA is embedded in an iFrame.
Note that the links still open in new tabs as intended and do not replace the HACS/HA/Parent content.

Tested with HA 2021.12.4, HACS 1.18.0 & Firefox 95.0.2.

@ludeeus ludeeus merged commit 5086d0a into hacs:main Dec 26, 2021
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.

Links not working in iFrame
2 participants