0
0
Fork 0

Enable ESLint Promise plugin defaults (#22229)

This commit is contained in:
Nick Schonning 2023-02-16 01:30:56 -05:00 committed by GitHub
parent 29ec2c4fb5
commit 5e1c0c3d94
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View file

@ -3,7 +3,7 @@
const checkNotificationPromise = () => {
try {
// eslint-disable-next-line promise/catch-or-return
// eslint-disable-next-line promise/catch-or-return, promise/valid-params
Notification.requestPermission().then();
} catch(e) {
return false;