Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose display mode (e.g. standalone) on client #1370

Open
slightlyoff opened this issue Nov 15, 2018 · 4 comments
Open

Expose display mode (e.g. standalone) on client #1370

slightlyoff opened this issue Nov 15, 2018 · 4 comments

Comments

@slightlyoff
Copy link
Contributor

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.

@tomayac
Copy link
Contributor

tomayac commented Nov 15, 2018

This could maybe be a Client Hint as well!?

@NekR
Copy link

NekR commented Nov 15, 2018 via email

@pavanratnakar
Copy link

Thank you for opening issue

@jakearchibald
Copy link
Contributor

Pre TPAC thoughts:

  • There's a lot of extra stuff we could expose here. Anything else?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants