Skip to content

Commit 23a45e2

Browse files
authored
Merge pull request #219 from codeitcodes/oembed
Update link.js
2 parents 1aa79dd + 62111b3 commit 23a45e2

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

api/link.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,12 @@ const html = `
111111
112112
const isDev = (window.location.hostname === 'dev.codeit.codes');
113113
114+
if (link && link.startsWith('https://codeit.codes/api/link?url=')) {
115+
116+
link = link.replace('https://codeit.codes/api/link?url=', 'https://cde.run/');
117+
118+
}
119+
114120
if (link && link.startsWith('https:/github.com')) {
115121
116122
link = link.replace('https:/github.com', 'https://github.com');

0 commit comments

Comments
 (0)