[Glitch] Enable ESLint Promise plugin defaults

Port 5e1c0c3d94 to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
local
Nick Schonning 1 year ago committed by Claire
parent 7452a95998
commit 6fdd596cc8
  1. 2
      app/javascript/flavours/glitch/utils/notifications.js

@ -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…
Cancel
Save