You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
402 B
10 lines
402 B
(function() {
|
|
var tag = document.querySelector(
|
|
'script[type="application/javascript;version=1.7"]'
|
|
);
|
|
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');
|
|
tag.textContent = tag.textContent.replace(/^\/\/<!\[CDATA\[/, '');
|
|
})();
|
|
|