Skip to content

Commit 283ac9b

Browse files
committed
Update link.js
1 parent 4df3029 commit 283ac9b

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

api/link.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,11 @@ const html = `
8282
<meta name="next-head-count" content="24">
8383
<meta name="robots" content="all">
8484
85+
<link rel="iframely player" type="text/html"
86+
href="https://codeit.codes/api/link?url=`+ query.url +`"
87+
media="(aspect-ratio: 1280/720)"
88+
/>
89+
8590
<link rel="shortcut icon" href="https://codeit.codes/icons/android-app-512.png">
8691
<link rel="apple-touch-icon" href="https://codeit.codes/icons/iphone-app-180.png">
8792
@@ -94,7 +99,7 @@ const html = `
9499
const url = new URL(window.location.href).searchParams;
95100
96101
let link = url.get('url');
97-
let embed = url.get('embed');
102+
let oembed = url.get('oembed');
98103
99104
const isDev = (window.location.hostname === 'dev.codeit.codes');
100105
@@ -114,7 +119,7 @@ const html = `
114119
115120
if (link) {
116121
117-
if (embed) link += '?embed=true';
122+
if (oembed) link += '?oembed=true';
118123
119124
const resp = decodeLink(link);
120125

0 commit comments

Comments
 (0)