Fixed ESLint error (#15214)
* eslint --fix * fix consistent-return * fix promise/catch-or-return * ignore import rule
This commit is contained in:
1 parent
4ae22c4613
commit
a2da02626e
5 files changed
+19
-13
No files matched your search
@@ -257,7 +257,7 @@ export function setupBrowserNotifications() {
|
||||
if ('Notification' in window && 'permissions' in navigator) {
|
||||
navigator.permissions.query({ name: 'notifications' }).then((status) => {
|
||||
status.onchange = () => dispatch(setBrowserPermission(Notification.permission));
|
||||
});
|
||||
}).catch(console.warn);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user