Refactoring, create component OpenInCodepenio
This commit is contained in:
parent
82f839a35f
commit
97340d7135
@ -63,7 +63,6 @@ class OpenInCodepenio extends Component<OpenInCodepenioProps> {
|
||||
getExternalLibraries = (type: LibraryType): string => {
|
||||
let library: string[] = []
|
||||
const { code, support = SupportType.HTML } = this.props;
|
||||
|
||||
Object.values(this.libraries).forEach((value: Library) => {
|
||||
if( value.validate(support, code)){
|
||||
library = value[type]
|
||||
|
||||
Loading…
Reference in New Issue
Block a user