Skip to content

Commit 1c6dca8

Browse files
authored
Merge pull request #217 from codeitcodes/oembed
Update oembed.js
2 parents 7402004 + d464618 commit 1c6dca8

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

api/oembed.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,7 @@ export default function handler(request, response) {
1616

1717
let url = 'https://codeit.codes';
1818

19-
if (query.url.startsWith('https://dev.cde.run/')) {
20-
url = 'https://dev.codeit.codes';
21-
}
22-
23-
url += '/api/link?url=' + query.url + '&oembed=true';
19+
url += '/api/link?url=' + 'https://cde.run/' + query.url + '&oembed=true';
2420

2521
const embedHTML = `<iframe src="`+ url +`" width="700" height="480" style="border-radius: 10px;" allow="accelerometer; camera; encrypted-media; display-capture; geolocation; gyroscope; microphone; midi; clipboard-read; clipboard-write" allowfullscreen="true" allowpaymentrequest="true" loading="lazy" sandbox="allow-downloads allow-forms allow-modals allow-pointer-lock allow-popups allow-presentation allow-same-origin allow-scripts allow-top-navigation-by-user-activation" scrolling="yes" frameborder="0"></iframe></html>`;
2622

0 commit comments

Comments
 (0)