Skip to content

Ensure ReactPerf always uses a string as a URL. #572

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

Closed
wants to merge 1 commit into from

Conversation

cpojer
Copy link
Contributor

@cpojer cpojer commented Nov 20, 2013

This is a pretty pointless exercise and it is mostly about fixing my not being in the contributors list.

Anyway, the reason I'm making this change is that I ran into a case where window.location.href was empty and URL.match would fail. It doesn't make a lot of sense to be in an environment where window exists and window.location.href does not, but in any case it is better to have an empty string instead of no string :)

@zpao
Copy link
Member

zpao commented Nov 20, 2013

2fe2cd5

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