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

Ignore feature detection #271

Closed
kirly-af opened this issue Oct 17, 2019 · 1 comment
Closed

Ignore feature detection #271

kirly-af opened this issue Oct 17, 2019 · 1 comment

Comments

@kirly-af
Copy link

We should have a way to do feature detection without disabling a rule.

A least one of theses examples should work with "browserslist": ["cover 99.5%"]:

if (navigator.sendBeacon) {
}

if (navigator.sendBeacon != null) {
}

if (navigator.sendBeacon !== undefined) {
}

if (typeof navigator.sendBeacon !== 'undefined') {
}
@amilajack
Copy link
Owner

Duplicate of #26

@amilajack amilajack marked this as a duplicate of #26 Dec 25, 2019
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