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

Allow navigation to alternate messenger domains #816

Merged
merged 2 commits into from Mar 31, 2019

Conversation

dhharris
Copy link
Contributor

I was having an issue where navigating to something like prod.messenger.com would open in my browser. I'd like to be able to do that in the Caprine app, so I changed the navigation rules to allow any hostname that contains messenger.com.

@dhharris dhharris marked this pull request as ready for review March 14, 2019 19:02
@sindresorhus
Copy link
Owner

I think it would be better to use String#endsWith.

@dhharris
Copy link
Contributor Author

Sounds good to me. I'll edit the diff.

@CvX
Copy link
Collaborator

CvX commented Mar 16, 2019

Hm, this change makes it match URLs like e.g. "https://my.classmessenger.com/login" 😉
It should probably check for the dot in the hostname too, i.e. hostname.endsWith('.messenger.com').

@dhharris
Copy link
Contributor Author

Sorry for the delay, I was on vacation :)

@sindresorhus sindresorhus merged commit 1ee6b4c into sindresorhus:master Mar 31, 2019
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.

None yet

3 participants