# Having some issues with inserting iframes using Discourse's Ember API

**URL:** https://meta.discourse.org/t/having-some-issues-with-inserting-iframes-using-discourses-ember-api/300572
**Category:** Development
**Tags:** ember
**Created:** [March 22, 2024, 6:15pm UTC](https://meta.discourse.org/t/having-some-issues-with-inserting-iframes-using-discourses-ember-api/300572 "2024-03-22T18:15:33Z")
**Posts on this page:** 1
**Showing post:** 8

<div class="post-metadata">

### Author: ![Arkshine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arkshine/32/298682_2.png) [@Arkshine](https://meta.discourse.org/u/Arkshine)
#### Post date: [September 5, 2024, 2:16am UTC](https://meta.discourse.org/t/having-some-issues-with-inserting-iframes-using-discourses-ember-api/300572/8 "2024-09-05T02:16:49Z")

</div>

Here are a few pointers:

- The site settings have been moved to a service:

- `location:discourse-location` → `location:history`

- `afterRender().then(() => onAfterRender(container));`  
`afterRender` is a decorator you put above a method in a component class; you are not supposed to use it directly as a function.  
I think you want (it doesn’t seem to be needed), possibly:

- You have a large piece of code out of the `composeStateChanged` function, it seems.  
Also, you can use the router service here: `container.lookup('router:main').transitionTo(path);` → `this.router.transitionTo(path);`

- The header has been modernized. Customization in `home-logo` widget is deprecated in your context. More information here: [Upcoming Header Changes - Preparing Themes and Plugins](https://meta.discourse.org/t/upcoming-header-changes-preparing-themes-and-plugins/296544).  
In your case, you will need `glimmer header mode` setting to `auto` or `enabled`. Then, you can use a plugin outlet to replace the content:

With that, it kind of works somehow. There are still no working pieces like the composer. I did not look too deeply into this. At the very least, there is no more blocking error. 🙂

I hope that helps.

---

_[View the full topic](https://meta.discourse.org/t/having-some-issues-with-inserting-iframes-using-discourses-ember-api/300572)._
