-
-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Conversation
@@ -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'; |
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.
This should be react_perf
(underscore rather than dash)
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.
Oh my.
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.
Now it's working after the change.
Released with |
Fixes #620
We do this it
react-perf
query param exists in the main frame.