We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 8a4e6e3 + ca48f5b commit 40239a9Copy full SHA for 40239a9
2 files changed
api/oembed.js
@@ -16,10 +16,6 @@ export default function handler(request, response) {
16
17
let url = 'https://codeit.codes';
18
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';
24
25
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>`;
0 commit comments