# Admin Module does not work, iframe set to "display:none"

**URL:** https://forum.shopware.com/t/admin-module-does-not-work-iframe-set-to-display-none/89633
**Category:** Shopware 6 (English)
**Tags:** administration, programming
**Created:** [6. August 2021 um 20:08 UTC](https://forum.shopware.com/t/admin-module-does-not-work-iframe-set-to-display-none/89633 "2021-08-06T20:08:44Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![keepoalaDev](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/keepoaladev/32/14404_2.png) [@keepoalaDev](https://forum.shopware.com/u/keepoalaDev)
#### Post date: [6. August 2021 um 20:08 UTC](https://forum.shopware.com/t/admin-module-does-not-work-iframe-set-to-display-none/89633/1 "2021-08-06T20:08:44Z")

</div>

In case I try to host a module admin view, I receive the following view

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/2X/4/462bd1ae05e653665186c3b913043882758d274b.png)

This is due to the fact, that my iframe gets set to „display:none“

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/2X/a/a03ca94b2a217e2e1c42a99852551983718351f5.png)

`manifest.xml` excerpt

```xml
<admin>
  <module name="Keepoala"
                parent="sw-order"
                position="3"
                source="http://localhost:8180"
                >
            <label>Keepoala</label>
            <label lang="de-DE">Keepoala</label>
        </module>
</admin>

```

Why is that the case? My website renders perfectly

---

<div class="post-metadata">

### Author: ![SvenDenter](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/svendenter/32/13693_2.png) [@SvenDenter](https://forum.shopware.com/u/SvenDenter)
#### Post date: [11. August 2021 um 06:57 UTC](https://forum.shopware.com/t/admin-module-does-not-work-iframe-set-to-display-none/89633/2 "2021-08-11T06:57:48Z")

</div>

To do this you need to confirm that your code has been loaded via a javascript snippet.

Here is an example of the javascript snippet.

[AppTemplate/base.html.twig at master · shopwareLabs/AppTemplate · GitHub](https://github.com/shopwareLabs/AppTemplate/blob/master/templates/base.html.twig) → window.parent.postMessage(‚sw-app-loaded‘, ‚\*‘); must be called.

Also once again our documentation.

> **[Add custom module](https://developer.shopware.com/docs/guides/plugins/apps/administration/add-custom-modules#leave-loading-state)**

---

<div class="post-metadata">

### Author: ![keepoalaDev](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/keepoaladev/32/14404_2.png) [@keepoalaDev](https://forum.shopware.com/u/keepoalaDev)
#### Post date: [12. August 2021 um 07:02 UTC](https://forum.shopware.com/t/admin-module-does-not-work-iframe-set-to-display-none/89633/3 "2021-08-12T07:02:16Z")

</div>

@SvenDenter , it works fine now. But would there be a way to set this timer \> 5 seconds. Using a dev-environment my app builds in approx 6 seconds. Of course the app loads only 0.5 seconds after an optimized build, but during development I would like to check some things live. Maybe if shopware runs in debug mode (via dockware) this could be set higher?
