Expose `display` mode (e.g. `standalone`) on `client`
Nobody has claimed this yet.
- Dominant language
- Bikeshed
- Stars
- 3.6k
- Forks
- 324
- Avg merge
- 14d 22h
- Merged PRs (30d)
- 1
Description
Per a recent partner conversation, it can be useful at fetch time to understand the display mode of the client making a fetch. In keeping with our principle of telling developers what we know which they could already get in an inelegant way, we should perhaps expose this on Clients.
It's very inelegant to get this data from the Service Worker context today; it's only available via DOM through a media query, and propagating it through to a fetch is difficult.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No files or tests are named. Start by reviewing the existing Service Worker Clients API and the issue’s description of display mode being available only through a DOM media query. Done means the required API behavior and exposure of the client’s display mode are clearly specified for fetch-time use.
Written by the indexing model from the issue text.
Assessment
- Domain
- api, web-dev
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100