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

hotfix: Open deeplink callbacks in current tab even in iframe use case #541

Merged
merged 1 commit into from
Oct 5, 2020

Conversation

davidyuk
Copy link
Member

@davidyuk davidyuk commented Oct 2, 2020

reverts #495

The thing is that window.parent is always truthy:

If a window does not have a parent, its parent property is a reference to itself.

https://developer.mozilla.org/en-US/docs/Web/API/Window/parent

Would be better to use IN_FRAME the next time. Forcing openUrl to use a new tab in the web version of wallet breaks deeplink flow. To address #493 I'm proposing explicitly specify that the explorer and ui should be opened in a new tab, but keeping the ability to open deeplink in the same tab that is used in Meet.

closes aeternity/jitsi-meet#259

@davidyuk davidyuk requested review from etharner and mradkov October 2, 2020 13:24
@davidyuk davidyuk marked this pull request as ready for review October 2, 2020 13:57
Copy link
Contributor

@etharner etharner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed to that solution. At first I'd wanted to do that way but chosed window.parent as a shorter solution. But I haven't checked deeplinks though.

@mradkov mradkov merged commit b9d3cb5 into master Oct 5, 2020
@mradkov mradkov deleted the hotfix/reverse-iframe-detection branch October 5, 2020 07:12
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.

3 participants