amilajack / amilajack/eslint-plugin-compat

Incorrect eslint error for navigator.mediaDevices

Đang mở
#405 0 bình luận 3 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
TypeScript
Star
3.2k
Fork
115
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

We currently have the following line of code:
```
const devices = await navigator.mediaDevices.enumerateDevices();
```

which logs this eslint error.

`64:31 error navigator.mediaDevices() is not supported in Safari 13 compat/compat`

However, according to caniuse, this API is available in Safari 13
https://caniuse.com/?search=mediadevices

Thanks!

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.