Files
react.dev/public/js/jsfiddle-integration-babel.js
Will Klein c74271e26a Add React Denver to the Meetups page (#4727)
Co-authored-by: Rick Hanlon <rickhanlonii@fb.com>
2025-04-02 12:17:42 -04:00

19 lines
558 B
JavaScript

/**
* Copyright (c) Facebook, Inc. and its affiliates.
*/
// Do not delete or move this file.
// Many fiddles reference it so we have to keep it here.
(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/babel');
tag.textContent = tag.textContent.replace(/^\/\/<!\[CDATA\[/, '');
})();