mirror of
https://github.com/outline/outline.git
synced 2026-12-02 09:42:07 +03:00
fix: Bad functional refactor
This commit is contained in:
1 parent
73b604cd9d
commit
2f2e367e91
1 file changed
+1
-1
@@ -6,7 +6,7 @@ const URL_REGEX = new RegExp("^https://codepen.io/(.*?)/(pen|embed)/(.*)$");
|
||||
|
||||
export default function Codepen(props: Props) {
|
||||
const normalizedUrl = props.attrs.href.replace(/\/pen\//, "/embed/");
|
||||
return <Frame {...this.props} src={normalizedUrl} title="Codepen Embed" />;
|
||||
return <Frame {...props} src={normalizedUrl} title="Codepen Embed" />;
|
||||
}
|
||||
|
||||
Codepen.ENABLED = [URL_REGEX];
|
||||
Reference in new issue
Block a user