Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions SidePanel/explainer.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,11 @@ side panel by using Client Hints. The developer can use the `Sec-CH-UA` header
or `navigator.userAgentData.brands` to detect if the web application is being
displayed in the side panel.

```javascript
if (navigator.userAgentData.brands.some(brand => brand.brand === 'EdgeSidePanel')) {
// The web application is being displayed in the side panel.
}
```
```javascript
if (navigator.userAgentData.brands.some(brand => brand.brand === 'EdgeSidePanel')) {
// The web application is being displayed in the side panel.
}
```

## Alternatives Considered

Expand Down