# gpui_web: Update example to use \`run_embedded\(\)\` instead of \`run\(\)\` \(\#63235\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/206a863a95086699f2a8784a58b4825af80df46c)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 206a863a95086699f2a8784a58b4825af80df46c

Requested commit: 206a863a95086699f2a8784a58b4825af80df46c

Commit: 206a863a95086699f2a8784a58b4825af80df46c

Tree: 8524d36aa6b13c782661ad823e5c5c6b435cd274

Author: Bowen Xu

Committer: GitHub

## Message

```
gpui_web: Update example to use `run_embedded()` instead of `run()` (#63235)

# Objective

- Make the gpui_web example run correctly

## Solution

- The gpui_web example uses `run()`, which should be replaced with
`run_embedded()`; otherwise, the page will be blank.

## Testing

- I tested it locally.

## Self-Review Checklist:

- [x] I've reviewed my own diff for quality, security, and reliability
- [ ] Unsafe blocks (if any) have justifying comments
- [ ] The content adheres to Zed's UI standards
([UX/UI](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
and
[icon](https://github.com/zed-industries/zed/blob/main/crates/icons/README.md)
guidelines)
- [ ] Tests cover the new/changed behavior
- [x] Performance impact has been considered and is acceptable

## Showcase

**_Before:_**
<img width="1730" height="1527" alt="before"
src="https://github.com/user-attachments/assets/1935a2a0-7509-4bd6-bdba-6538a37de375"
/>
<br/><br/>

**_After:_**
<img width="1730" height="1527" alt="after"
src="https://github.com/user-attachments/assets/564aef15-7c1e-4978-a95d-07ad4fd680e4"
/>

<br/><br/>
Release Notes:

- Fixed the `gpui_web` example.

---------

Co-authored-by: Kirill Bulatov <mail4score@gmail.com>
```

## Parents

- [28e52a2879f07912fd583420615ad94eaa699a3f](https://git.cafe/gitcafe/zed/commit/28e52a2879f07912fd583420615ad94eaa699a3f?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/206a863a95086699f2a8784a58b4825af80df46c?format=markdown)
