# UXP host object not populated

**URL:** <https://forums.creativeclouddeveloper.com/t/uxp-host-object-not-populated/3191>\
**Category:** UXP Plugin API\
**Tags:** javascript\
**Created:** [June 25, 2021, 10:11pm UTC](https://forums.creativeclouddeveloper.com/t/uxp-host-object-not-populated/3191 "2021-06-25T22:11:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bootsie123](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/bootsie123/32/1489_2.png) [@bootsie123](https://forums.creativeclouddeveloper.com/u/bootsie123)\
**Post date:** [June 25, 2021, 10:11pm UTC](https://forums.creativeclouddeveloper.com/t/uxp-host-object-not-populated/3191/1 "2021-06-25T22:11:37Z")

</div>

Hi! I noticed in the documentation for XD it mentions `require("uxp").host`. However, that object only seems to populate in the Photoshop version of UXP. Not both of them like you would expect. Is it supposed to be like that? Thanks!

---

<div class="post-metadata">

**Author:** ![bootsie123](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/bootsie123/32/1489_2.png) [@bootsie123](https://forums.creativeclouddeveloper.com/u/bootsie123)\
**Post date:** [June 28, 2021, 9:21pm UTC](https://forums.creativeclouddeveloper.com/t/uxp-host-object-not-populated/3191/2 "2021-06-28T21:21:12Z")

</div>

Just an update. I heard back that this is currently a known bug and will be fixed. For right now, as a work around, if you need to detect if a plugin is being ran from PS or XD, you can just check for the existence of the host object
