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

Check if browser is an iOS uiWebView #432

Merged
merged 3 commits into from
Jun 19, 2018
Merged

Conversation

InfiniteLee
Copy link
Contributor

If it is, don't allow user to enter in 2D. Instead, prompt the user to copy the URL and open it in Safari. "fix" for #181

If it is, don't allow user to enter in 2D. Instead, prompt the user to copy the URL and open it in Safari.
@@ -13,6 +13,7 @@ class InfoDialog extends Component {
slack: Symbol("slack"),
email_submitted: Symbol("email_submitted"),
invite: Symbol("invite"),
safari: Symbol(""),
Copy link
Contributor

Choose a reason for hiding this comment

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

Might as well use Symbol("safari") here. It makes for nicer debugging at least.

<button className="invite-form__action-button" onClick={this.shareLinkClicked}>
<span>Share</span>
</button>
)}
Copy link
Contributor

Choose a reason for hiding this comment

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

Does this actually show in Chrome? I would remove it.

dialogBody = (
<div>
<div>
Hubs is not supported in your current browser on iOS. Copy and paste this link directly in Safari.
Copy link
Contributor

Choose a reason for hiding this comment

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

Nitpick: I think I'd prefer: "Hubs does not support your current browser on iOS."

<span>Share</span>
</button>
)}
<button className="invite-form__action-button" onClick={this.copyLinkClicked}>
Copy link
Contributor

Choose a reason for hiding this comment

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

copyLinkClicked will not include query parameters

Copy link
Contributor

@brianpeiris brianpeiris left a comment

Choose a reason for hiding this comment

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

lgtm

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.

2 participants