[Glitch] Fixed ESLint error

Port a2da02626e to glitch-soc

Signed-off-by: Thibaut Girka <thib@sitedethib.com>
This commit is contained in:
abcang
2020-11-24 01:35:14 +09:00
committed by Thibaut Girka
parent 3d970faeb1
commit b9fc807115
4 changed files with 6 additions and 3 deletions

View File

@@ -345,7 +345,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);
}
};
}