We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4b6e5d0 + 4a45ad3 commit 78b5048Copy full SHA for 78b5048
1 file changed
docs/js/jsfiddle-integration-babel.js
@@ -0,0 +1,10 @@
1
+(function() {
2
+ var tag = document.querySelector(
3
+ 'script[type="application/javascript;version=1.7"]'
4
+ );
5
+ if (!tag || tag.textContent.indexOf('window.onload=function(){') !== -1) {
6
+ alert('Bad JSFiddle configuration, please fork the original React JSFiddle');
7
+ }
8
+ tag.setAttribute('type', 'text/babel');
9
+ tag.textContent = tag.textContent.replace(/^\/\/<!\[CDATA\[/, '');
10
+})();
0 commit comments