Revert "Added support for no-iframed embeds"

This reverts commit 8e29e8de79.
This commit is contained in:
Fabien O'Carroll 2021-11-15 12:26:10 +02:00
parent dad82ec463
commit b8dd7c6af2
2 changed files with 1 additions and 7 deletions

View File

@ -22,11 +22,7 @@
{{#if this.payload.html}}
<div class="kg-card-hover">
<div class="koenig-embed-{{this.payload.type}} flex justify-center relative" data-kg-embed>
{{#if this.payload.noIframe}}
{{{this.payload.html}}}
{{else}}
<iframe class="bn miw-100" scrolling="no"></iframe>
{{/if}}
<div class="koenig-card-click-overlay ba b--transparent" data-kg-overlay></div>
</div>

View File

@ -188,8 +188,6 @@ export default Component.extend({
delete response.html;
set(this.payload, 'type', response.type);
delete response.type;
set(this.payload, 'noIframe', !!response.noIframe);
delete response.noIframe;
// store all other data returned from oembed such as thumbnails, sizing, etc
set(this.payload, 'metadata', response);