diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index e449b7c..94c7de6 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -31,6 +31,7 @@ import { UrlInputSection } from "./components/UrlInputSection"; import TermsOfServiceDialog from "./components/TermsOfServiceDialog"; import html2canvas from "html2canvas"; import { USER_CLOSE_WEB_SOCKET_CODE } from "./constants"; +import OpenInCodepenio from "./components/OpenInCodepenio"; function App() { const [appState, setAppState] = useState(AppState.INITIAL); @@ -97,45 +98,6 @@ function App() { setAppState(AppState.CODE_READY); }; - function doOpenInCodepenio(){ - const code = generatedCode - - var form = document.createElement('form'); - form.setAttribute('method', 'POST'); - form.setAttribute('action', 'https://codepen.io/pen/define'); - form.setAttribute('target', '_blank'); // open in new window - - const data = { - html: code, - editors: "100", // 1:Open html, 0:close CSS, 0:Close Js - layout: "left", - css_external: "https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css" - + (generatedCode.includes('