mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-03-17 08:50:54 -04:00
[Glitch] Enable ESLint Promise plugin defaults
Port 5e1c0c3d946bef488f8e156ed3b5034740e731df to glitch-soc Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
parent
7452a95998
commit
6fdd596cc8
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user