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

Add the react-perf query to the iframe #623

Merged
merged 2 commits into from
Nov 22, 2016
Merged

Add the react-perf query to the iframe #623

merged 2 commits into from
Nov 22, 2016

Conversation

arunoda
Copy link
Member

@arunoda arunoda commented Nov 19, 2016

Fixes #620

We do this it react-perf query param exists in the main frame.

@@ -77,6 +77,11 @@ var ReactProvider = function (_Provider) {
selectedStory: selectedStory
};

// Add the react-perf query string to the iframe if that present.
if (/react-perf=/.test(location.search)) {
queryParams['react-perf'] = '1';

Choose a reason for hiding this comment

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

This should be react_perf (underscore rather than dash)

Copy link
Member Author

Choose a reason for hiding this comment

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

Oh my.

Copy link
Member Author

Choose a reason for hiding this comment

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

Now it's working after the change.

@arunoda arunoda merged commit ebce3b8 into master Nov 22, 2016
@arunoda arunoda deleted the react-perf branch November 22, 2016 01:48
@arunoda
Copy link
Member Author

arunoda commented Nov 22, 2016

Released with v2.32.1

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