-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Conversation
If it is, don't allow user to enter in 2D. Instead, prompt the user to copy the URL and open it in Safari.
src/react-components/info-dialog.js
Outdated
@@ -13,6 +13,7 @@ class InfoDialog extends Component { | |||
slack: Symbol("slack"), | |||
email_submitted: Symbol("email_submitted"), | |||
invite: Symbol("invite"), | |||
safari: Symbol(""), |
There was a problem hiding this comment.
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.
src/react-components/info-dialog.js
Outdated
<button className="invite-form__action-button" onClick={this.shareLinkClicked}> | ||
<span>Share</span> | ||
</button> | ||
)} |
There was a problem hiding this comment.
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.
src/react-components/info-dialog.js
Outdated
dialogBody = ( | ||
<div> | ||
<div> | ||
Hubs is not supported in your current browser on iOS. Copy and paste this link directly in Safari. |
There was a problem hiding this comment.
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."
src/react-components/info-dialog.js
Outdated
<span>Share</span> | ||
</button> | ||
)} | ||
<button className="invite-form__action-button" onClick={this.copyLinkClicked}> |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
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