Refactoring, create component OpenInCodepenio

This commit is contained in:
dialmedu 2023-11-26 23:36:20 -05:00
parent 82f839a35f
commit 97340d7135

View File

@ -63,7 +63,6 @@ class OpenInCodepenio extends Component<OpenInCodepenioProps> {
getExternalLibraries = (type: LibraryType): string => { getExternalLibraries = (type: LibraryType): string => {
let library: string[] = [] let library: string[] = []
const { code, support = SupportType.HTML } = this.props; const { code, support = SupportType.HTML } = this.props;
Object.values(this.libraries).forEach((value: Library) => { Object.values(this.libraries).forEach((value: Library) => {
if( value.validate(support, code)){ if( value.validate(support, code)){
library = value[type] library = value[type]