From b093a8f79e11dabd081cce921c1a983cc7fa08db Mon Sep 17 00:00:00 2001 From: dialmedu Date: Sun, 26 Nov 2023 23:44:57 -0500 Subject: [PATCH] Refactoring , create Component OpenInCodepeio --- frontend/src/App.tsx | 2 +- frontend/src/components/OpenInCodepenio.tsx | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index 94c7de6..5ac191b 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -323,7 +323,7 @@ function App() { > Copy Code - + toast.success("Opening codepen.io, enable redirect permission")} > { @@ -62,7 +63,7 @@ class OpenInCodepenio extends Component { getExternalLibraries = (type: LibraryType): string => { let library: string[] = [] const { code, support = SupportType.HTML } = this.props; - debugger + Object.values(this.libraries).forEach((value: Library) => { if( value.validate(support, code)){ library = value[type]