Skip to content

Property 'globalPrivacyControl' does not exist on type 'Navigator'. #1465

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

Open
pechitook opened this issue Jan 6, 2023 · 1 comment
Open

Comments

@pechitook
Copy link

pechitook commented Jan 6, 2023

Even though it is not an official W3C listed spec, GPC is a standard already supported natively by Brave and Firefox.

Opening this issue/discussion to understand if adding support for this optional field that some browsers support is something worth including or not. Happy to put up a PR with the change if so.

Of course, the workaround for now would be to do

(navigator as any).globalPrivacyControl
@HolgerJeromin
Copy link
Contributor

https://github.com/microsoft/TypeScript-DOM-lib-generator#why-is-my-fancy-api-still-not-available-here

Brave is not one of those major browsers. So I think we will have to wait a bit.

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

2 participants