Skip to content

Bring in jsfiddle integration script, add harmony #2433

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

Merged
merged 1 commit into from
Oct 31, 2014

Conversation

zpao
Copy link
Member

@zpao zpao commented Oct 30, 2014

Brings in http://dragon.ak.fbcdn.net/hphotos-ak-prn1/851561_341095626017279_6573_n.js which is currently living at http://fb.me/react-js-fiddle-integration.js. We should just serve from GitHub for this so its easier to update. In fact we can skip the fb.me hop entirely and update the base fiddle to point at facebook.github.io/js/jsfiddle-integration.js

cc @vjeux

if (!tag || tag.textContent.indexOf('window.onload=function(){') !== -1) {
alert('Bad JSFiddle configuration, please fork the original React JSFiddle');
}
tag.setAttribute('type', 'text/jsx;harmony=true');
Copy link
Contributor

Choose a reason for hiding this comment

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

it's just ;harmony, not =true

Copy link
Member Author

Choose a reason for hiding this comment

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

Nope, we made it strict in #1827.

zpao added a commit that referenced this pull request Oct 31, 2014
Bring in jsfiddle integration script, add harmony
@zpao zpao merged commit 1666661 into facebook:master Oct 31, 2014
zpao added a commit that referenced this pull request Oct 31, 2014
Bring in jsfiddle integration script, add harmony
zpao added a commit that referenced this pull request Oct 31, 2014
@zpao
Copy link
Member Author

zpao commented Oct 31, 2014

Should we just update the base fiddle to use http://facebook.github.io/react/js/jsfiddle-integration.js or should we update the fb.me url to point at that?

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