Skip to content

Commit da986d3

Browse files
committed
fix incorrect iframe props
1 parent 54ed2f7 commit da986d3

File tree

2 files changed

+1
-27
lines changed

2 files changed

+1
-27
lines changed

src/app/[[...markdownPath]]/page.js renamed to src/app/[[...markdownPath]]/page.tsx

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -12,32 +12,6 @@ import {MDXComponents} from 'components/MDX/MDXComponents';
1212
import compileMDX from 'utils/compileMDX';
1313
import {generateRssFeed} from '../../utils/rss';
1414

15-
// Deserialize a client React tree from JSON.
16-
function reviveNodeOnClient(parentPropertyName, val) {
17-
if (Array.isArray(val) && val[0] == '$r') {
18-
let Type = val[1];
19-
let key = val[2];
20-
if (key == null) {
21-
key = parentPropertyName;
22-
}
23-
let props = val[3];
24-
if (Type === 'wrapper') {
25-
Type = Fragment;
26-
props = {children: props.children};
27-
}
28-
if (Type in MDXComponents) {
29-
Type = MDXComponents[Type];
30-
}
31-
if (!Type) {
32-
console.error('Unknown type: ' + Type);
33-
Type = Fragment;
34-
}
35-
return <Type key={key} {...props} />;
36-
} else {
37-
return val;
38-
}
39-
}
40-
4115
function getActiveSection(pathname) {
4216
if (pathname === '/') {
4317
return 'home';

src/content/versions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,4 +298,4 @@ See the first blog post: [Why did we build React?](https://legacy.reactjs.org/bl
298298

299299
React was open sourced at Facebook Seattle in 2013:
300300

301-
<iframe width="560" height="315" src="https://www.youtube.com/embed/XxVg_s8xAms?si=466vSJrnXTn05j9A" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
301+
<iframe width="560" height="315" src="https://www.youtube.com/embed/XxVg_s8xAms?si=466vSJrnXTn05j9A" title="YouTube video player" frameBorder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerPolicy="strict-origin-when-cross-origin" allowFullScreen></iframe>

0 commit comments

Comments
 (0)